//ww:error "not a variant" // 944_variant_chain_b95 isas_amb_reject_notcrash: `is base` on (ali | ali2) // (both reach base) — must REJECT (not crash) on the ambiguity (#107). BOTH // stages reject with the diagnostic body, not a signal. package main; type base = struct { a: int, b: int }; type ali = base; type ali2 = ali; fn f(v: (ali | ali2)) i32 = { if (v is base) { return 1; }; return 0; }; export fn main() i32 = { return 0; };