Open and answer this issue on GitHub.
bug, lowering, ready · opened 2026-11-23 · updated 2026-11-23 · 0 comments
What: in the std’s own .nika (crates/nikaia-std/src/compiler/check_places.nika), let mut help = "…" without a type, later passed to a String? parameter, lowers to &str, and the lowered check_places.rs fails rustc E0308 “expected Text, found &str”. let mut help: String = "…" works; the same in a user program builds. Found by the builder of “async: migrate overlap, task::scope and spawn programs and tests” (#990); it cost a full build cycle, since lower-std let it through.
Decision: none: an unannotated binding takes the type its uses need (Part I); a defect of the std text tier.
Probe: in any compiler .nika, fn takes(h: String?) sync { … } and let mut help = "a"; if c { help = "b" }; takes(help); run nikaia lower-std, then cargo build -p nikaia-std. Today: E0308. Should build.
To build:
lower-std (suspected: the type it gives an unannotated mutable literal) gives the binding Text where a use needs String/String?; or lower-std refuses it with a message rather than writing Rust that fails.lower-std tests are), with the probe.Done when: the probe lowers to Rust that builds.
Generated by Claude Code