// usepromote/typmod — exports a `type typmod` with the same leaf as // the module name. Paired with pos_type.ww to pin the SK_USE→SK_TYPE // promotion's use_alias=1 behaviour (cmd/wcc/check.c L1660 / L1677): // the consumer's `typmod.flag` lookup must walk through the alias // even though the leaf sym is SK_TYPE, not SK_USE. // // random.random in lib/ is the canonical real-world instance of this // shape; this fixture replays it as a regression pin. package typmod; export type typmod = struct { x: i32, }; export type flag = enum i32 { NONE = 0, A = 42, };