mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
Zcu: panic on usingnamespace with -fincremental
This commit is contained in:
parent
93f2d9a77f
commit
8f8fe89276
@ -2040,6 +2040,9 @@ const ScanDeclIter = struct {
|
||||
const want_analysis = switch (kind) {
|
||||
.@"comptime" => unreachable,
|
||||
.@"usingnamespace" => a: {
|
||||
if (comp.incremental) {
|
||||
@panic("'usingnamespace' is not supported by incremental compilation");
|
||||
}
|
||||
if (declaration.flags.is_pub) {
|
||||
try namespace.pub_usingnamespace.append(gpa, nav);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user