test286
auto test286 =
q{--- test286.vx
// Report error on out-of-bound access to array
void sys_write(void* ptr){}
void printa[Args...](Args... data) {
sys_write(data[3].ptr);
}
void main() {
printa("Hello", ", ", "world!\n");
}
--- <error>
test286.vx:4:17: Error: Accessing index 3 of array of length 3
};
tests passing
functionsvariables