missing case in methodcall

This commit is contained in:
Krauß, Josefine 2024-06-30 13:39:20 +02:00
parent 4bc38c0ff9
commit dd2842138f

View File

@ -56,6 +56,8 @@ public class MethodCallStatementExpression extends AbstractType implements IExpr
receiver.instVarExpression.thisClass = typeOfSubreceiver;
receiver.instVarExpression.typeCheck(methodContext, typeContext, localVars);
currentType = typeContext.get(typeOfSubreceiver).get(mostLeftField);
} else {
currentType = thisClass;
}
} else {
currentType = thisClass;