mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 00:52:52 +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'
|