* add tests for some Null<BasicType> behaviour * make Null<T> actually test something
@@ -78,6 +78,7 @@ class TestMain {
new TestArrowFunctions(),
new TestCasts(),
new TestSyntaxModule(),
+ new TestNull(),
#if !no_pattern_matching
new TestMatch(),
#end
@@ -0,0 +1,10 @@
+package unit;
+
+class TestNull extends Test {
+ var ni:Null<Int> = null; // a field to prevent local optimizations
+ function test() {
+ f(ni == 0);
+ f(0 == ni);
+ }
+}