Use un-specialized field when extracting struct types

This commit is contained in:
Owen Mansel-Chan
2024-10-11 10:53:14 +01:00
parent 6bf6ed6f48
commit 9381dda4a9

View File

@@ -1608,7 +1608,7 @@ func extractType(tw *trap.Writer, tp types.Type) trap.Label {
case *types.Struct:
kind = dbscheme.StructType.Index()
for i := 0; i < tp.NumFields(); i++ {
field := tp.Field(i)
field := tp.Field(i).Origin()
// ensure the field is associated with a label - note that
// struct fields do not have a parent scope, so they are not