summaryrefslogtreecommitdiff
path: root/src/ast/nodes/ParamlistNode.java
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-06-25 11:33:41 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-06-25 11:33:41 +0200
commit6bdf1fc6c1b7afe18ffcae05f8fb11eca0f51258 (patch)
tree2cfbae97d45388bac38defc9907c77e7b275b207 /src/ast/nodes/ParamlistNode.java
parent54b2c77e6875c1abb3d73fdfd0de924e75633087 (diff)
wip
Diffstat (limited to 'src/ast/nodes/ParamlistNode.java')
-rw-r--r--src/ast/nodes/ParamlistNode.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/nodes/ParamlistNode.java b/src/ast/nodes/ParamlistNode.java
index 144eb13..a097c19 100644
--- a/src/ast/nodes/ParamlistNode.java
+++ b/src/ast/nodes/ParamlistNode.java
@@ -21,7 +21,7 @@ public class ParamlistNode implements Node {
ArrayList<SemanticError> errors = new ArrayList<SemanticError>();
for (var param : params) {
- errors.addAll(param.checkSemantics(ST, _nesting));
+ errors.addAll(param.checkSemantics(ST, _nesting + 1));
}
return errors;