Browse Source

untyped is EVIL (see #3946)

Dan Korostelev 10 năm trước cách đây
mục cha
commit
086113cf0b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
 	}
 
 	/**