You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var mem = [];
for (var i = 0; i < 10; ++i) {
mem[i] = i;
}
native func0(n:int):obj {
var r:int[];
for (var i = 0; i < n; ++i) {
r[i] = mem[i];
}
return r;
}
var res = func0(10);
System.println(res);
Besides, an initializer cannot be accepted in compiler.
native f() {
var a:int[] = [];
}
// Error: Not supported operation in native function near the <(unknown)>:2