diff options
author | geno <gabriele.genovese2@studio.unibo.it> | 2024-06-30 13:43:46 +0200 |
---|---|---|
committer | geno <gabriele.genovese2@studio.unibo.it> | 2024-06-30 13:43:46 +0200 |
commit | 06d7c8dee25c065b1a569337f34d3cd5e892a31d (patch) | |
tree | 1835ae7c789136b4a6c44c12efd4247a0b96d893 /src/ast | |
parent | afff6a80cd58f7787efa1398f7c8cbdce8989323 (diff) |
fix build error in CI
Diffstat (limited to 'src/ast')
-rw-r--r-- | src/ast/nodes/ArglistNode.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ast/nodes/ArglistNode.java b/src/ast/nodes/ArglistNode.java index 55a568d..425e4c6 100644 --- a/src/ast/nodes/ArglistNode.java +++ b/src/ast/nodes/ArglistNode.java @@ -22,7 +22,8 @@ public class ArglistNode implements Node { ArrayList<SemanticError> errors = new ArrayList(); for (var arg : arguments) { - if (arg instanceof ExprNode argExpr) { + if (arg instanceof ExprNode) { + ExprNode argExpr = (ExprNode) arg; String argName = argExpr.getId(); // TODO: check fucking IntType for params |