Skip to content

Commit

Permalink
Fix variable compilation problems
Browse files Browse the repository at this point in the history
Signed-off-by: Oğuzhan Durgun <oguzhandurgun95@gmail.com>
  • Loading branch information
oguzhand95 committed Sep 4, 2023
1 parent 9b9dcbc commit da75480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/compile/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (vd *variableDefinitions) resolveReferences() {
}

func (vd *variableDefinitions) references(parent string, expr *expr.CheckedExpr) map[string]struct{} {
checkedAST, err := ast.CheckedExprToCheckedAST(expr)
checkedAST, err := ast.ToAST(expr)
if err != nil {
vd.modCtx.addErrWithDesc(err, "Failed to convert expression to AST in %s", parent)
return nil
Expand Down

0 comments on commit da75480

Please sign in to comment.