Skip to content

Commit 9cef3b6

Browse files
authored
fix: for preprocessing concat expressions (#1051)
fix for preprocessing concat expressions This simply updates them to be properly preprocessed.
1 parent 514d9be commit 9cef3b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/corset/compiler/preprocessor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,8 @@ func (p *preprocessor) preprocessExpressionInModule(expr ast.Expr) (ast.Expr, []
376376
case *ast.VariableAccess:
377377
return e, nil
378378
case *ast.Concat:
379-
return e, nil
379+
args, errs := p.preprocessExpressionsInModule(e.Args)
380+
nexpr, errors = &ast.Concat{Args: args}, errs
380381
default:
381382
return nil, p.srcmap.SyntaxErrors(expr, "unknown expression encountered during preprocessing")
382383
}

0 commit comments

Comments
 (0)