Quellcode durchsuchen

[tests] remove tre test for instance method

Instance methods are not supported for tre, see
https://github.com/HaxeFoundation/haxe/issues/8953#issuecomment-558597443

Also note that this test was previously ignored as our optimization
tests only considered static fields.
Rudy Ges vor 10 Monaten
Ursprung
Commit
376456ca68
1 geänderte Dateien mit 0 neuen und 26 gelöschten Zeilen
  1. 0 26
      tests/optimization/src/TestTreGeneration.hx

+ 0 - 26
tests/optimization/src/TestTreGeneration.hx

@@ -25,32 +25,6 @@ class TestTreGeneration {
 		return s == null ? a : b;
 	}
 
-	@:js('
-		if(b == null) {
-			b = 10;
-		}
-		while(true) {
-			if(Std.random(2) == 0) {
-				var _gtmp1 = a;
-				a = b + a;
-				b = _gtmp1;
-				s += "?";
-				continue;
-			}
-			if(s == null) {
-				return a;
-			} else {
-				return b;
-			}
-		}
-	')
-	function testInstanceMethod(a:Int, b:Int = 10, ?s:String):Int {
-		if(Std.random(2) == 0) {
-			return testInstanceMethod(b + a, a, s + '?');
-		}
-		return s == null ? a : b;
-	}
-
 	@:js('
 		var local = null;
 		local = function(a,b,s) {