test: remove package-wide import assumptions
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
//ww:run-exit 42
|
||||
package main;
|
||||
// migrated from test/wcc/699_use_promote_alias.c: SK_USE->SK_DEF promotion must keep use_alias so `defmod.flag` resolves.
|
||||
package defmod;
|
||||
export def defmod: 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 `defmod.flag` resolves.
|
||||
import defmod;
|
||||
fn main() i32 = {
|
||||
let m: defmod.flag = defmod.flag.A;
|
||||
|
||||
7
test/wcc/data/r699_usepromote_def/defmod/defmod.ww
Normal file
7
test/wcc/data/r699_usepromote_def/defmod/defmod.ww
Normal file
@@ -0,0 +1,7 @@
|
||||
package defmod;
|
||||
|
||||
export def defmod: i32 = 0i32;
|
||||
export type flag = enum i32 {
|
||||
NONE = 0,
|
||||
A = 42,
|
||||
};
|
||||
Reference in New Issue
Block a user