summaryrefslogtreecommitdiff
path: root/src/ast/nodes/ParamdefNode.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/nodes/ParamdefNode.java')
-rw-r--r--src/ast/nodes/ParamdefNode.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/nodes/ParamdefNode.java b/src/ast/nodes/ParamdefNode.java
index 6cdb2d0..e5694fa 100644
--- a/src/ast/nodes/ParamdefNode.java
+++ b/src/ast/nodes/ParamdefNode.java
@@ -17,7 +17,7 @@ public class ParamdefNode extends AtomNode {
@Override
public ArrayList<SemanticError> checkSemantics(SymbolTable ST, int _nesting) {
- var errors = new ArrayList();
+ ArrayList<SemanticError> errors = new ArrayList<>();
String paramName = this.getId();
if (!ST.top_lookup(paramName)) {