reflect: fix TestCanSetField
Этот коммит содержится в:
родитель
181d2ad2b4
коммит
017ab4c352
1 изменённых файлов: 3 добавлений и 0 удалений
|
@ -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()
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче