@@ -166,7 +166,7 @@ class Lib
/**
Allocates a new Haxe Array with a predetermined size
**/
- public static function arrayAlloc<T>(size:Int):Array<T>
+ inline public static function arrayAlloc<T>(size:Int):Array<T>
{
return @:privateAccess Array.alloc(size);
}
@@ -5,6 +5,8 @@ class Issue3946 extends Test {
function test() {
var arr = cs.Lib.arrayAlloc(10);
eq(arr.length, 10);
+ arr[0] = 5;
+ eq(arr[0],5);
#end