diff --git a/src/main/java/de/maishai/typedast/typedclass/TypedAssignment.java b/src/main/java/de/maishai/typedast/typedclass/TypedAssignment.java index a13f9a5..63d8e08 100644 --- a/src/main/java/de/maishai/typedast/typedclass/TypedAssignment.java +++ b/src/main/java/de/maishai/typedast/typedclass/TypedAssignment.java @@ -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