missing case in methodcall
This commit is contained in:
parent
4bc38c0ff9
commit
dd2842138f
@ -56,6 +56,8 @@ public class MethodCallStatementExpression extends AbstractType implements IExpr
|
|||||||
receiver.instVarExpression.thisClass = typeOfSubreceiver;
|
receiver.instVarExpression.thisClass = typeOfSubreceiver;
|
||||||
receiver.instVarExpression.typeCheck(methodContext, typeContext, localVars);
|
receiver.instVarExpression.typeCheck(methodContext, typeContext, localVars);
|
||||||
currentType = typeContext.get(typeOfSubreceiver).get(mostLeftField);
|
currentType = typeContext.get(typeOfSubreceiver).get(mostLeftField);
|
||||||
|
} else {
|
||||||
|
currentType = thisClass;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
currentType = thisClass;
|
currentType = thisClass;
|
||||||
|
Loading…
Reference in New Issue
Block a user