Simon Krajewski %!s(int64=9) %!d(string=hai) anos
pai
achega
e582d73241
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      tests/optimization/src/TestAnalyzer.hx

+ 3 - 1
tests/optimization/src/TestAnalyzer.hx

@@ -689,7 +689,9 @@ class TestAnalyzer extends TestBase {
 		var b = B(0);
 		switch (b) {
 			case B(i):
-				assertEquals(0, i); // Null<Int> vs. Int, should not propagate
+				// Null<Int> vs. Int, should not propagate
+				// Actually we can on dynamic targets.
+				assertEqualsConst(0, i);
 			case A(_):
 		}
 	}