Fix table array into pointer to slice
This commit is contained in:
@@ -122,6 +122,14 @@ func scopeWithArrayTable(x target, key []ast.Node) (target, bool, error) {
|
|||||||
|
|
||||||
v := x.get()
|
v := x.get()
|
||||||
|
|
||||||
|
if v.Kind() == reflect.Ptr {
|
||||||
|
x, err = scopePtr(x)
|
||||||
|
if err != nil {
|
||||||
|
return x, false, err
|
||||||
|
}
|
||||||
|
v = x.get()
|
||||||
|
}
|
||||||
|
|
||||||
if v.Kind() == reflect.Interface {
|
if v.Kind() == reflect.Interface {
|
||||||
x, err = scopeInterface(true, x)
|
x, err = scopeInterface(true, x)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user