Skip to content

Commit 752dd25

Browse files
committed
Merge branch 'reflect-stub' into go118
2 parents d126d78 + beac72a commit 752dd25

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/reflect/value.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,11 @@ func (v Value) FieldByIndex(index []int) Value {
861861
panic("unimplemented: (reflect.Value).FieldByIndex()")
862862
}
863863

864+
// FieldByIndexErr returns the nested field corresponding to index.
865+
func (v Value) FieldByIndexErr(index []int) (Value, error) {
866+
return Value{}, &ValueError{Method: "FieldByIndexErr"}
867+
}
868+
864869
func (v Value) FieldByName(name string) Value {
865870
panic("unimplemented: (reflect.Value).FieldByName()")
866871
}

0 commit comments

Comments
 (0)