Skip to content

Commit

Permalink
interp: fix fieldName method parsing embedded + generic fields
Browse files Browse the repository at this point in the history
  • Loading branch information
zbysir committed Jun 27, 2023
1 parent 75e5f99 commit d8cca03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions interp/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,8 @@ func fieldName(n *node) string {
return fieldName(n.child[1])
case starExpr:
return fieldName(n.child[0])
case indexExpr:
return fieldName(n.child[0])
case identExpr:
return n.ident
default:
Expand Down

0 comments on commit d8cca03

Please sign in to comment.