test: remove package-wide import assumptions
This commit is contained in:
@@ -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;
|
||||
|
||||
9
test/wcc/data/r699_usepromote_fn/fnmod/fnmod.ww
Normal file
9
test/wcc/data/r699_usepromote_fn/fnmod/fnmod.ww
Normal file
@@ -0,0 +1,9 @@
|
||||
package fnmod;
|
||||
|
||||
export type flag = enum i32 {
|
||||
NONE = 0,
|
||||
A = 42,
|
||||
};
|
||||
export fn fnmod() i32 = {
|
||||
return 0i32;
|
||||
};
|
||||
Reference in New Issue
Block a user