Browse Source

[cs] one more dodge

Simon Krajewski 2 years ago
parent
commit
c6930a1e58
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/unit/src/unit/issues/Issue10761.hx

+ 2 - 0
tests/unit/src/unit/issues/Issue10761.hx

@@ -7,9 +7,11 @@ class Issue10761 extends Test {
 		return args;
 	}
 
+	#if !erase_generics
 	function test() {
 		aeq([0, 1], rest(0, 1)); // works
 		aeq([0, 1], rest(...[0, 1])); // works
 		aeq([0, 1], rest(...[for (i in 0...2) i])); // errors
 	}
+	#end
 }