Issue #2937: A run lambda that changes a capture inside a pausing kept lambda still fails…

Open and answer this issue on GitHub.

decision, bugs · opened 2026-11-29 · updated 2026-11-29 · 0 comments

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

Found

A run lambda that changes a capture inside a pausing kept lambda still fails at yes: fn high(h: fn(i64) -> i64) -> i64 { return h(3) } / fn main() throws { let n = 2; let hi: fn(i64) -> i64 = fn(x) { let mut acc = 0; let r = high(fn(y) { acc = acc + y; return y + n }); return r + acc + x }; println(hi(1)) } prints 9 at no and gives NK1343 “Send not general enough” at yes; ADR-269 D22 asks for 9 in both settings. Hand-written Rust shapes tried, each still refused: async move over references, a boxed call future (E0597), a closure returning std::future::ready, a helper async fn. Suspected in emit_core_args emit_arg_future. How a changed capture crosses (a shared cell?) has no decision yet

Check missing

The Found suspects a cause but names no check that settles it (docs/issues.md I7). The second item runs one (nikaia run scripts/where.nika, a probe, callgrind) before anything is built on it; a cause shown false is answered wrong I7: ... in the report.

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