From a3d7c1da7e0fba697bc862e0c232e5812aae82b8 Mon Sep 17 00:00:00 2001 From: 404Simon Date: Tue, 14 May 2024 15:51:01 +0200 Subject: [PATCH] add typecheck --- .../java/de/maishai/typedast/typedclass/TypedAssignment.java | 1 + 1 file changed, 1 insertion(+) 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