// usepromote/defmod — exports a `def defmod` with the same leaf as // the module name. Paired with pos_def.ww to exercise the SK_USE→ // SK_DEF promotion (cmd/wcc/check.c L1709). Mirrors the SK_FN bug // shape: without `use_alias = 1`, the consumer's `defmod.flag` lookup // fails because the promoted-in-place SK_DEF leaf no longer advertises // itself as a module head. package defmod; export def defmod: i32 = 0i32; export type flag = enum i32 { NONE = 0, A = 42, };