mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +00:00
Add reflect.Value.FieldByIndexErr stub
This commit is contained in:
committed by
Ron Evans
parent
234234af15
commit
f159573975
@@ -861,6 +861,11 @@ func (v Value) FieldByIndex(index []int) Value {
|
||||
panic("unimplemented: (reflect.Value).FieldByIndex()")
|
||||
}
|
||||
|
||||
// FieldByIndexErr returns the nested field corresponding to index.
|
||||
func (v Value) FieldByIndexErr(index []int) (Value, error) {
|
||||
return Value{}, &ValueError{Method: "FieldByIndexErr"}
|
||||
}
|
||||
|
||||
func (v Value) FieldByName(name string) Value {
|
||||
panic("unimplemented: (reflect.Value).FieldByName()")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user