//ww:run-exit 42 // #142: a VALUE use of an error-singleton type name whose union has // structurally identical siblings. The pre-fix wwstage stamped the // flattened BODY type (!void), so flatvariantidxt could not pick a // variant and loud-rejected; the per-decl NAMED stamp discriminates. // Exit 42 proves the SECOND variant is selected, not the first. package main; type a = !void; type b = !void; type err = !(a | b); fn f() err = { return b; }; fn main() i32 = { match (f()) { case a => { return 41; }; case b => { return 42; }; }; return 9; };