add typecheck

This commit is contained in:
404Simon 2024-05-14 15:51:01 +02:00
parent 34efc2847b
commit a3d7c1da7e

View File

@ -27,6 +27,7 @@ public class TypedAssignment implements TypedStatement {
public void convertToTypedAssignment(TypedClass clas, Assignment untyped) {
value = convertExpression(clas, untyped.value());
location = new TypedFieldVarAccess(clas, untyped.location());
location.typeCheck(clas);
}
@Override