mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 15:12:31 +00:00
10 lines
157 B
Zig
10 lines
157 B
Zig
test "access variable after block scope" {
|
|
{
|
|
var x: i32 = 1;
|
|
_ = &x;
|
|
}
|
|
x += 1;
|
|
}
|
|
|
|
// test_error=use of undeclared identifier 'x'
|