Browse Source

only enable #10193 test for js

looks like it should work everywhere but it doesnt
Dan Korostelev 4 years ago
parent
commit
c65cf58b36
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/unit/src/unit/issues/Issue10193.hx

+ 4 - 0
tests/unit/src/unit/issues/Issue10193.hx

@@ -1,13 +1,16 @@
 package unit.issues;
 
 class Issue10193 extends Test {
+	#if js
 	function test() {
 		var c = new C(42);
 		eq(42, c.a);
 		eq(42, c.f());
 	}
+	#end
 }
 
+#if js // some targets are not happy with this for some reason...
 @:keep
 @:native("Issue10193E")
 private class EImpl {
@@ -30,3 +33,4 @@ private class C extends E {
 		this.f = () -> this.a;
 	}
 }
+#end