Skip to content

Commit 9381dda

Browse files
committed
Use un-specialized field when extracting struct types
1 parent 6bf6ed6 commit 9381dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/extractor/extractor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ func extractType(tw *trap.Writer, tp types.Type) trap.Label {
16081608
case *types.Struct:
16091609
kind = dbscheme.StructType.Index()
16101610
for i := 0; i < tp.NumFields(); i++ {
1611-
field := tp.Field(i)
1611+
field := tp.Field(i).Origin()
16121612

16131613
// ensure the field is associated with a label - note that
16141614
// struct fields do not have a parent scope, so they are not

0 commit comments

Comments
 (0)