Simon Krajewski 9 anni fa
parent
commit
e582d73241
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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(_):
 		}
 	}