update TypedBoolLiteral

This commit is contained in:
ahmad 2024-05-11 11:50:07 +02:00
parent f38670ebd2
commit 47ecd27fef

View File

@ -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<String, Type> localVar, TypedClass clas, BoolLiteral unTypedBoolLiteral) {
convertToTypedBoolLiteral(localVar, clas, unTypedBoolLiteral);
@ -34,7 +31,7 @@ public class TypedBoolLiteral implements TypedExpression {
@Override
public Type typeCheck(Map<String, Type> localVar, TypedClass clas) {
type = Type.BOOL;
return Type.BOOL;
return type;
}
@Override