ref in front of it to pass a view of it”…Open and answer this issue on GitHub.
views, decision · opened 2026-11-09 · updated 2026-11-09 · 0 comments
Filed by the driver from the Found: of the run of issue-1386 (#1386) (owner, 2026-11-06).
NK1104’s help “Write ref in front of it to pass a view of it” (way_out_of_a_mismatch, check_types.nika:291) and “Make it a ref W” still name ref, which left the language (views-3 D4); it shows e.g. for an impl of -> String from a returning an owned local s, and following it (return ref s) gives an NK1343 internal error: the checker accepts a view of a local handed back. Probe: trait Pick { fn pick(self, a: String, b: String) -> String from a } / impl Pick for P { fn pick(self, a: String, b: String) -> String from a { let s: String = f”x{b}”; return ref s } } -> NK1343. The help is pinned by it test views_handed_back::following_nk1104s_help_is_a_program, so changing its wording needs a decision.
supervisor decision on the NK1104 help wording (Found)
nikaia run scripts/probe.nika -- SNIPPET).tests/compiler/.The probe gives the specified result and its test is green.
Generated by Claude Code