15 lines
No EOL
267 B
Text
15 lines
No EOL
267 B
Text
def func<N>() -> bool {
|
|
u64[N] y = [...[0; N-1], 1]; // the rhs should *not* be reduced to [1] because the spread is not empty
|
|
u64 q = 0;
|
|
|
|
for u32 i in 0..N {
|
|
q = y[i];
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
def main() {
|
|
assert(func::<2>());
|
|
return;
|
|
} |