Commit eb05d76
committed
fix(main): thread imported type schemes into check_program (#135)
check_file discarded the resolve type_ctx and called check_program
without ?import_types, so cross-module imported values (e.g. split
imported by io.affine via ADR-011 `use string::{...}`) resolved but
were 'Unbound variable' at typecheck. Pass
~import_types:type_ctx.name_types in both check_file branches.
Completes the ADR-011 cross-module value-import path at the typecheck
stage (affects io and every `use prelude::{...}` consumer). Full suite
233/233, zero regression; stdlib 12/19 (io/collections/result now fail
deeper at genuine type-level, no green regressed).
Refs #1281 parent 6a233b4 commit eb05d76
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
| |||
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
232 | | - | |
233 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
234 | 238 | | |
235 | 239 | | |
236 | 240 | | |
| |||
0 commit comments