This code was compiled successfully:
Code: Select all
script "test" (void) {
for(static int i = 1 + 1; i < 10; i++) {}
}
Code: Select all
script "test" (void) {
int j = 1;
for(static int i = 1 + j; i < 10; i++) {}
}
> for(static int i = 1 + j; (j symbol)
But if I remove static modifier everything will work. Is this a normal behavior or this is a bug?