Step 10c: fix capabilities, closure-scope, define-library imports

- Initialize _cek_call_ref in sx_ref.ml — fixes 8 capabilities tests
- Rename test variable 'peek' to 'get-val' — collides with new peek
  special form. Fixes closure-scope-edge test.
- Add import clause handling to define-library — was silently skipping
  (import ...) inside library definitions. Fixes 4 define-library tests.

2767/2768 OCaml (1 pre-existing aser/render-to-sx issue).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-05 11:58:18 +00:00
parent fb262aa49b
commit 0e311f0c7d
3 changed files with 62 additions and 60 deletions

View File

@@ -1986,6 +1986,10 @@
(map
(fn (s) (if (symbol? s) (symbol-name s) (str s)))
(rest decl))))
(= kind "import")
(for-each
(fn (import-set) (bind-import-set import-set lib-env))
(rest decl))
(= kind "begin")
(set! body-forms (append body-forms (rest decl)))
:else nil))))