Fixed #1888 Casts in binary operations, not casting any type

This commit is contained in:
Jindra Petřík
2022-11-30 22:58:35 +01:00
parent 954200484c
commit 9e8d00edba
40 changed files with 124 additions and 96 deletions
@@ -102,7 +102,7 @@ public class TernarOpItem extends GraphTargetItem {
&& (onFalse.returnType().equals(TypeItem.NUMBER) || onFalse.returnType().equals(TypeItem.INT) || onFalse.returnType().equals(TypeItem.UINT))) {
return TypeItem.NUMBER;
}
return TypeItem.UNBOUNDED;
return TypeItem.UNKNOWN;
}
@Override
@@ -50,4 +50,4 @@ public class UnboundedTypeItem extends AVM2Item {
public boolean hasReturnValue() {
return true;
}
}
}