diff options
| -rw-r--r-- | src/ast/nodes/ExprNode.java | 8 | 
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ast/nodes/ExprNode.java b/src/ast/nodes/ExprNode.java index 781cc76..591ee37 100644 --- a/src/ast/nodes/ExprNode.java +++ b/src/ast/nodes/ExprNode.java @@ -62,12 +62,8 @@ public class ExprNode implements Node {                  if (fun != null && !(fun.getType() instanceof ImportType)) {                      if (!(fun.getType() instanceof FunctionType)) { -                        if (trailer.isParenthesis()) { -                            errors.add(new SemanticError("'" + funName + "' is not a function.")); -                        } else { -                            for (var t : trailers) { -                                errors.addAll(t.checkSemantics(ST, _nesting)); -                            } +                        for (var t : trailers) { +                            errors.addAll(t.checkSemantics(ST, _nesting));                          }                      } else {                          FunctionType ft = (FunctionType) fun.getType();  |