test: remove package-wide import assumptions

This commit is contained in:
2026-08-14 03:45:02 +09:00
parent a841278333
commit 04d9560d51
74 changed files with 121 additions and 154 deletions

View File

@@ -1,13 +1,8 @@
//ww:run-exit 42
package main;
// migrated from test/wcc/699_use_promote_alias.c: SK_USE->SK_VAR promotion must keep use_alias so `varmod.flag` resolves.
package varmod;
export let varmod: i32 = 0i32;
export type flag = enum i32 {
NONE = 0,
A = 42,
};
package main;
// migrated from test/wcc/699_use_promote_alias.c: importing a package whose
// export has the same name as its default qualifier must retain the qualifier
// binding so `varmod.flag` resolves.
import varmod;
fn main() i32 = {
let m: varmod.flag = varmod.flag.A;