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_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;
|
||||
|
||||
7
test/wcc/data/r699_usepromote_var/varmod/varmod.ww
Normal file
7
test/wcc/data/r699_usepromote_var/varmod/varmod.ww
Normal file
@@ -0,0 +1,7 @@
|
||||
package varmod;
|
||||
|
||||
export let varmod: i32 = 0i32;
|
||||
export type flag = enum i32 {
|
||||
NONE = 0,
|
||||
A = 42,
|
||||
};
|
||||
Reference in New Issue
Block a user