ソースを参照

untyped is EVIL (see #3946)

Dan Korostelev 10 年 前
コミット
086113cf0b
1 ファイル変更1 行追加1 行削除
  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);
 	}
 
 	/**