From 47ecd27fef34304d8b25313104233310571faea6 Mon Sep 17 00:00:00 2001 From: ahmad Date: Sat, 11 May 2024 11:50:07 +0200 Subject: [PATCH] update TypedBoolLiteral --- .../de/maishai/typedast/typedclass/TypedBoolLiteral.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/de/maishai/typedast/typedclass/TypedBoolLiteral.java b/src/main/java/de/maishai/typedast/typedclass/TypedBoolLiteral.java index de8bfdb..7159ab1 100644 --- a/src/main/java/de/maishai/typedast/typedclass/TypedBoolLiteral.java +++ b/src/main/java/de/maishai/typedast/typedclass/TypedBoolLiteral.java @@ -19,9 +19,6 @@ public class TypedBoolLiteral implements TypedExpression { private Boolean value; private Type type; - public TypedBoolLiteral(Boolean value) { - this.value = value; - } public TypedBoolLiteral(Map localVar, TypedClass clas, BoolLiteral unTypedBoolLiteral) { convertToTypedBoolLiteral(localVar, clas, unTypedBoolLiteral); @@ -34,7 +31,7 @@ public class TypedBoolLiteral implements TypedExpression { @Override public Type typeCheck(Map localVar, TypedClass clas) { type = Type.BOOL; - return Type.BOOL; + return type; } @Override