Explorar o código

Lua : add missing remove method to Array class

Justin Donaldson %!s(int64=10) %!d(string=hai) anos
pai
achega
0d3a0ed2f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      std/lua/_std/Array.hx

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

@@ -78,7 +78,7 @@ class Array<T> {
 	}
 
 	public inline function remove( x : T ) : Bool {
-		return true;
+		return untyped this.remove(x);
 	}
 
 	public function indexOf( x : T, ?fromIndex:Int ) : Int return 1;