c3c
c3c copied to clipboard
Reference parameter doesn't work with vector subscript
fn void main() {
int[4] array;
@foo(array[0]);
assert(array[0] == 1);
int[<4>] vec;
@foo(vec[0]);
assert(vec[0] == 1); // This assert fails
}
macro @foo(&ref) {
*ref += 1;
}
Thanks, an important bug to fix. I put it in 0.6.1.
It's fixed, thanks.