nctref/tests/scoping.nct
2023-08-27 19:48:06 +03:00

5 lines
135 B
Plaintext

u8 a = 5;
if(a) {
u8 a = 10; /* Should not cause scoping errors. */
}
u8 b = 15; /* `a` in the if statement scope should be free'd. */