Issue #2989: a catch on a task tuple whose fallback is text is an internal error: `let p…

Open and answer this issue on GitHub.

ready, bugs, queued · opened 2026-11-30 · updated 2026-11-30 · 0 comments

Filed by the driver from the Found: of the run of issue-990-rest2 (#990) (owner, 2026-11-06).

Found

a catch on a task tuple whose fallback is text is an internal error: let p = async { (async load("a"), async load("b")) } catch { ("x", "y") } (load -> String throws) gives NK1343 “match arms have incompatible types. Expected tuple (EitherText<'_>, EitherText<'_>) found tuple (nikaia_std::block::Text, nikaia_std::block::Text)”; it should give p = (“x”, “y”) (ADR-async-v7 D22); with i64 values the same shape works. Cause unknown (suspected: the group value’s tuple type in the async-group emitter is not unified with the handler’s text arm)

To build

Done when

The probe or check gives the expected output the first item names from its ADR or Part I-III section, and a tests/compiler/tests/ test (or the named check) that failed on the unfixed tree is green; or the probe already passes on develop and a test pins it, naming the commit that fixed it; or the issue is closed as by design, naming the function or ADR.


Generated by Claude Code

Back to Open Issues