|
@@ -97,7 +97,7 @@
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- public function iterator() : Iterator<T> {
|
|
|
+ public function iterator() : ListIterator<T> {
|
|
|
return untyped __call__("new _hx_list_iterator", this);
|
|
|
}
|
|
|
|
|
@@ -158,3 +158,8 @@
|
|
|
return iterator();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+@:coreType private extern class ListIterator<T> {
|
|
|
+ function hasNext():Bool;
|
|
|
+ function next():T;
|
|
|
+}
|