Skip to content

Commit

Permalink
interp: added kind to log for typecheck (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Oct 21, 2020
1 parent 804664c commit c74d050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interp/typecheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (check typecheck) addressExpr(n *node) error {
found = true
continue
}
return n.cfgErrorf("invalid operation: cannot take address of %s", c0.typ.id())
return n.cfgErrorf("invalid operation: cannot take address of %s [kind: %s]", c0.typ.id(), kinds[c0.kind])
}
return nil
}
Expand Down

0 comments on commit c74d050

Please sign in to comment.