// usepromote/fnmod — exports a `fn fnmod()` with the same leaf as the // module name. Paired with pos_fn.ww to exercise the bug fix at // cmd/wcc/check.c L1722 (SK_USE→SK_FN promotion was missing the // `use_alias = 1` line, so the consumer's `fnmod.flag` lookup walked // resolve_typename's dot branch, found head `fnmod` as SK_FN, and // skipped the module-filtered leaf path → "unknown type fnmod.flag". // // lib/fnmatch is the real-world instance that surfaced this. package fnmod; export type flag = enum i32 { NONE = 0, A = 42, }; export fn fnmod() i32 = { return 0i32; };