diff options
Diffstat (limited to 'vendor/github.com/d5/tengo/v2/compiler.go')
-rw-r--r-- | vendor/github.com/d5/tengo/v2/compiler.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/d5/tengo/v2/compiler.go b/vendor/github.com/d5/tengo/v2/compiler.go index 1937a1d6..53cc7d38 100644 --- a/vendor/github.com/d5/tengo/v2/compiler.go +++ b/vendor/github.com/d5/tengo/v2/compiler.go @@ -323,7 +323,7 @@ func (c *Compiler) Compile(node parser.Node) error { return err } case *parser.Ident: - symbol, _, ok := c.symbolTable.Resolve(node.Name) + symbol, _, ok := c.symbolTable.Resolve(node.Name, false) if !ok { return c.errorf(node, "unresolved reference '%s'", node.Name) } @@ -659,7 +659,7 @@ func (c *Compiler) compileAssign( return c.errorf(node, "operator ':=' not allowed with selector") } - symbol, depth, exists := c.symbolTable.Resolve(ident) + symbol, depth, exists := c.symbolTable.Resolve(ident, false) if op == token.Define { if depth == 0 && exists { return c.errorf(node, "'%s' redeclared in this block", ident) |