We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2af7db7 commit 713a246Copy full SHA for 713a246
samples/distro-examples/tests/array.bas
@@ -321,4 +321,9 @@ dim j(0 to 1, 0 to 1)
321
j[0, 0].translation = [1,2,3]
322
k.framePoses = j
323
anims << k
324
+sub xfunc(argx)
325
+ local xx=[1,2,3]
326
+ if xx!=argx then throw "err"
327
+end
328
z=anims[0].framePoses[0, 0].translation
329
+xfunc(anims[0].framePoses[0, 0].translation)
src/common/scan.c
@@ -1110,6 +1110,10 @@ int comp_is_code_array(bc_t *bc, char *p) {
1110
}
1111
p++;
1112
1113
+ if (*p == '.') {
1114
+ // a[1].foo is not a code array
1115
+ result = 0;
1116
+ }
1117
if (!count) {
1118
result = 1;
1119
0 commit comments