You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(typecheck): reconcile register_builtins with resolver seed list (#135)
register_builtins had drifted from resolve.ml's seed_builtins: file-I/O
(read_file/write_file/append_file/file_exists/is_directory), env/time
(getenv/getcwd/time_now), and float-math (floor/ceil/round/trunc/sin/
cos/tan/atan/atan2/exp/log/log10/log2/cbrt) were seeded for resolution
but never typed, so stdlib files using them failed typecheck with
'Unbound variable'. Add correct schemes (signatures per io.affine /
math.affine headers). Also retype read_line as
Unit -> Result<String,String> (io.affine pattern-matches it Ok/Err;
effects.affine has its own extern decl so is unaffected).
io.affine's file-I/O builtins now type; its remaining failure is the
cross-module imported-type threading layer (split's scheme not seeded
into the importer's typecheck) — separate, documented on #128.
Full suite 233/233, zero regression; stdlib 12/19.
Refs #128
0 commit comments