Issue #2945: A handle task with a fallback, joined under catch in a fn main() throws…

Open and answer this issue on GitHub.

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

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

Found

A handle task with a fallback, joined under catch in a fn main() throws whose set is IoError only, is refused (fails on the binary before and after this change). Probe: fn slow() -> i64 throws { time::sleep(5.millis()); return 1 } fn main() throws { let h = async(handle) fn { slow() } catch { println("fallback"); 7 }; let n = h.join() catch { println(f"join caught {error}"); 9 }; println(f"{n}") } with use std::time gives NK1343 “no method named split found for enum OrCrash<E>”; it should print 1 (ADR-async-v6 D22: the join’s catch takes the held failure). The same probe without the task’s catch compiles and prints 1. Suspected cause: emit_core_flow.nika emit_core_try_catch sets named=true for a Thrown< scope.channel, while the handed join over the raised group channel yields OrCrash<Thrown> (check: lower the probe and read the match arm around h.handing().join()).

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