mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
reflect: set Index field in Field()
This commit is contained in:
@@ -567,6 +567,7 @@ func (t *rawType) Field(i int) StructField {
|
||||
Tag: field.Tag,
|
||||
Anonymous: field.Anonymous,
|
||||
Offset: field.Offset,
|
||||
Index: []int{i},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user