Skip to content

Commit c74d050

Browse files
authored
interp: added kind to log for typecheck (#910)
1 parent 804664c commit c74d050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interp/typecheck.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (check typecheck) addressExpr(n *node) error {
101101
found = true
102102
continue
103103
}
104-
return n.cfgErrorf("invalid operation: cannot take address of %s", c0.typ.id())
104+
return n.cfgErrorf("invalid operation: cannot take address of %s [kind: %s]", c0.typ.id(), kinds[c0.kind])
105105
}
106106
return nil
107107
}

0 commit comments

Comments
 (0)