mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 15:58:03 +00:00
update TypedBoolLiteral
This commit is contained in:
parent
f38670ebd2
commit
47ecd27fef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user