HaxeFoundation / HaxeFoundation/hxcpp

`Array.iterator()` should return an instance of `haxe.iterators.ArrayIterator`

Open
#870 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
330
Forks
227
Avg merge
2d 16h
Merged PRs (30d)
18

Description

Since https://github.com/HaxeFoundation/haxe/commit/6b7db0254e0035a2380b985fee1ff1160fd23ef2 `Array.iterator()` should return an instance of `haxe.iterators.ArrayIterator`.
Currently this happens:
```haxe
trace(([1, 2, 3]:Iterable).iterator()); // Object
var it:ArrayIterator = cast ([1, 2, 3]:Iterable).iterator();
trace(it); // null
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.