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,15 +1,8 @@
//ww:run-exit 42
package main;
// migrated from test/wcc/699_use_promote_alias.c: SK_USE->SK_FN promotion (the original bug) must keep use_alias or `fnmod.flag` fails "unknown type".
package fnmod;
export type flag = enum i32 {
NONE = 0,
A = 42,
};
export fn fnmod() i32 = {
return 0i32;
};
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 `fnmod.flag` resolves.
import fnmod;
fn main() i32 = {
let m: fnmod.flag = fnmod.flag.A;