Fix table array into pointer to slice

This commit is contained in:
Thomas Pelletier
2021-03-23 21:14:54 -04:00
parent bfeb32c9ce
commit a3b7e1e353
+8
View File
@@ -122,6 +122,14 @@ func scopeWithArrayTable(x target, key []ast.Node) (target, bool, error) {
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 {
x, err = scopeInterface(true, x)
if err != nil {