summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ast/nodes/ArglistNode.java3
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