summaryrefslogtreecommitdiff
path: root/src/ast/nodes/ParamlistNode.java
diff options
context:
space:
mode:
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 a097c19..144eb13 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 + 1));
+ errors.addAll(param.checkSemantics(ST, _nesting));
}
return errors;