Issue #2915: let help = "text" passed to a help: String? parameter (check_refusal…

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-2828 (#2828) (owner, 2026-11-06).

Found

let help = "text" passed to a help: String? parameter (check_refusal in crates/nikaia-std/src/compiler/check_state.nika) inside a sync method of a tools .nika lowers to Some(help) with help: &str, and rustc refuses it (lowered/check_places.rs:73: error[E0308]: mismatched types: expected Text, found &str); let help: String = "text" builds; the same shape in a user program (fn show(help: String?), let h = "abc", show(h)) builds and runs; suspected: text_tiers.nika does not raise a literal binding that reaches an optional String parameter in tools lowering; settle it with nikaia lower on a tools-mode copy

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