- Basic types can now be converted to the "any" type

- Changed OreDict 'contains' to respond to the 'in' operator
This commit is contained in:
Stan Hebben committed 2014-07-20 21:30:40 +02:00
1 parent 52f92dcfd4
commit 1b72abb2b4
59 files changed
+3595 -976

No files matched your search

@@ -28,7 +28,7 @@ public class StatementIf extends Statement {
Expression cCondition = condition.compile(environment).eval(environment);
ZenType expressionType = cCondition.getType();
if (expressionType.canCastImplicit(ZenTypeBool.INSTANCE, environment)) {
if (expressionType.canCastImplicit(ZenType.BOOL, environment)) {
Label labelEnd = new Label();
Label labelElse = onElse == null ? labelEnd : new Label();