mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 16:48:03 +00:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
8019e0e9cc
@ -41,7 +41,9 @@ public class TypedExpressionHelp {
|
|||||||
return typedMethodCall;
|
return typedMethodCall;
|
||||||
}
|
}
|
||||||
else if (expression instanceof New newStmt) {
|
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) {
|
else if (expression instanceof Unary unary) {
|
||||||
TypedUnary typedUnary = new TypedUnary(localVar, clas, unary);
|
TypedUnary typedUnary = new TypedUnary(localVar, clas, unary);
|
||||||
|
Loading…
Reference in New Issue
Block a user