Merge remote-tracking branch 'origin/main'

This commit is contained in:
404Simon 2024-05-11 18:33:34 +02:00
commit 8019e0e9cc

View File

@ -41,7 +41,9 @@ public class TypedExpressionHelp {
return typedMethodCall;
}
else if (expression instanceof New newStmt) {
return new TypedNew(localVar, clas, newStmt);
TypedNew typedNew = new TypedNew(localVar, clas, newStmt);
typedNew.typeCheck(localVar, clas);
return typedNew;
}
else if (expression instanceof Unary unary) {
TypedUnary typedUnary = new TypedUnary(localVar, clas, unary);