mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 22:04:21 +00:00
9 lines
157 B
Zig
9 lines
157 B
Zig
test "access variable after block scope" {
|
|
{
|
|
var x: i32 = 1;
|
|
_ = &x;
|
|
}
|
|
x += 1;
|
|
}
|
|
|
|
// test_error=use of undeclared identifier 'x'
|