Explorar el Código

untyped is EVIL (see #3946)

Dan Korostelev hace 10 años
padre
commit
086113cf0b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      std/cs/Lib.hx

+ 1 - 1
std/cs/Lib.hx

@@ -158,7 +158,7 @@ class Lib
 	**/
 	public static function arrayAlloc<T>(size:Int):Array<T>
 	{
-		return untyped Array.alloc(size);
+		return @:privateAccess Array.alloc(size);
 	}
 
 	/**