mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 08:23:41 +00:00
reflect: fix TestCanSetField
This commit is contained in:
@@ -639,6 +639,9 @@ func (v Value) Field(i int) Value {
|
|||||||
// The fact that PkgPath is present means that this field is not
|
// The fact that PkgPath is present means that this field is not
|
||||||
// exported.
|
// exported.
|
||||||
flags &^= valueFlagExported
|
flags &^= valueFlagExported
|
||||||
|
} else {
|
||||||
|
// Parent field may not have been exported but we are
|
||||||
|
flags |= valueFlagExported
|
||||||
}
|
}
|
||||||
|
|
||||||
size := v.typecode.Size()
|
size := v.typecode.Size()
|
||||||
|
|||||||
Reference in New Issue
Block a user