Browse Source

changed Array iterator() to return an Iterator<T> instead of Iterator<Null<T>>

Caue Waneck 13 years ago
parent
commit
73bec4fca0
4 changed files with 2 additions and 2 deletions
  1. 1 1
      std/Array.hx
  2. 0 0
      std/cs/_std/Array.hx
  3. 0 0
      std/java/_std/Array.hx
  4. 1 1
      std/neko/_std/Array.hx

+ 1 - 1
std/Array.hx

@@ -122,6 +122,6 @@ extern class Array<T> {
 	/**
 	/**
 		Returns an iterator of the Array values.
 		Returns an iterator of the Array values.
 	**/
 	**/
-	function iterator() : Iterator<Null<T>>;
+	function iterator() : Iterator<T>;
 
 
 }
 }

File diff suppressed because it is too large
+ 0 - 0
std/cs/_std/Array.hx


File diff suppressed because it is too large
+ 0 - 0
std/java/_std/Array.hx


+ 1 - 1
std/neko/_std/Array.hx

@@ -55,7 +55,7 @@
 		return new1(neko.NativeArray.sub(this.__a,0,this.length),this.length);
 		return new1(neko.NativeArray.sub(this.__a,0,this.length),this.length);
 	}
 	}
 
 
-	public function iterator() : Iterator<Null<T>> {
+	public function iterator() : Iterator<T> {
 		return untyped {
 		return untyped {
 			a : this,
 			a : this,
 			p : 0,
 			p : 0,

Some files were not shown because too many files changed in this diff