Files
zig/test/incremental/pointer_to_decl_with_astgen_error
Matthew Lugg 4a65cc4aca Zcu: report outdated nav_ty when previous generation had a compile error
This logic existed when actually analyzing a `nav_ty` unit directly; it
was just missing in the code path which resolves a `nav_ty` unit due to
a `nav_val` being resolved.

Resolves: #35307
2026-05-20 16:27:04 +02:00

24 lines
441 B
Plaintext

#update=initial version
#file=main.zig
const foo = {};
pub fn main() void {
_ = &foo;
}
#expect_stdout=""
#update=introduce use of undeclared identifier
#file=main.zig
const foo = something;
pub fn main() void {
_ = &foo;
}
#expect_error=main.zig:1:13: error: use of undeclared identifier 'something'
#update=revert use of undeclared identifier
#file=main.zig
const foo = {};
pub fn main() void {
_ = &foo;
}
#expect_stdout=""