|
@@ -3,11 +3,9 @@ package unit.issues;
|
|
class Issue6007 extends Test {
|
|
class Issue6007 extends Test {
|
|
function test() {
|
|
function test() {
|
|
// test anonymous type with borrowed iterator
|
|
// 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
|
|
// make sure instance body isn't executed twice
|
|
var k = [];
|
|
var k = [];
|