Browse Source

[cs][java] test #10193 and set pf_this_before_super=false for C#

Dan Korostelev 4 years ago
parent
commit
75d7c95bcd
2 changed files with 3 additions and 2 deletions
  1. 1 0
      src/context/common.ml
  2. 2 2
      tests/unit/src/unit/issues/Issue10193.hx

+ 1 - 0
src/context/common.ml

@@ -541,6 +541,7 @@ let get_config com =
 			pf_overload = true;
 			pf_supports_threads = true;
 			pf_supports_rest_args = true;
+			pf_this_before_super = false;
 			pf_exceptions = {
 				ec_native_throws = [
 					["cs";"system"],"Exception";

+ 2 - 2
tests/unit/src/unit/issues/Issue10193.hx

@@ -1,7 +1,7 @@
 package unit.issues;
 
 class Issue10193 extends Test {
-	#if js
+	#if (js || cs || java)
 	function test() {
 		var c = new C(42);
 		eq(42, c.a);
@@ -10,7 +10,7 @@ class Issue10193 extends Test {
 	#end
 }
 
-#if js // some targets are not happy with this for some reason...
+#if (js || cs || java) // some targets are not happy with this for some reason...
 @:keep
 @:native("Issue10193E")
 private class EImpl {