mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 10:37:46 +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
|
||||
// exported.
|
||||
flags &^= valueFlagExported
|
||||
} else {
|
||||
// Parent field may not have been exported but we are
|
||||
flags |= valueFlagExported
|
||||
}
|
||||
|
||||
size := v.typecode.Size()
|
||||
|
||||
Reference in New Issue
Block a user