Eval: Make a NullExpression evaluate to a Value with Type "NulLValue" instead of returning null.

This commit is contained in:
2023-03-22 00:13:23 +01:00
parent cce58b6e38
commit 534b507f7a

View File

@@ -507,7 +507,9 @@ public class EvalVisitor implements Visitor<Value> {
@Override
public Value visit(NullExpression e) {
return null;
var nullValue = new Value(null);
nullValue.type = new NullType();
return nullValue;
}
@Override