Explorar o código

fix Issue6007 for other platforms

Justin Donaldson %!s(int64=8) %!d(string=hai) anos
pai
achega
a34a00a178
Modificáronse 1 ficheiros con 3 adicións e 5 borrados
  1. 3 5
      tests/unit/src/unit/issues/Issue6007.hx

+ 3 - 5
tests/unit/src/unit/issues/Issue6007.hx

@@ -3,11 +3,9 @@ package unit.issues;
 class Issue6007 extends Test {
 	function test() {
 		// test anonymous type with borrowed iterator
-        var h = new haxe.ds.IntMap<Null<Int>>();
-        h.set(0, -1);
-        h.set(-4815, 8546);
-        var k = Lambda.array({iterator : h.keys});
-        eq("[0,-4815]", Std.string(k));
+        var a = [0,4];
+        var k = Lambda.array({iterator : a.iterator});
+        eq("[0,4]", Std.string(k));
 
 		// make sure instance body isn't executed twice
 		var k = [];