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
rsscript: module glob import, qualified variant patterns; verify value access
Finishes the three docs/requests module items:
1. module-value-access (R2) — was a false alarm: qualified `module.CONST` /
`module.Variant` value access already works through the *merged* semantic
checker (isolation runs before body checks). The reopened RS0026 came from
single-file `rss check`, which can't resolve ANY cross-module reference
(even `use ops.Ops` fails the same way). Added a checker-level regression
test (analyze_sources_with_interfaces) and corrected the doc.
2. module-glob-import — `use module.*` now parses (no RS0015) and imports every
bare-referenceable module symbol (functions, consts, types, sums, aliases)
into the file scope; variants resolve globally via their sum type. Expanded
in a second pass once the module symbol tables are complete.
3. module-qualified-variant-pattern — the pattern parser accepts a dotted head
(`ops.ADD`, `a.b.Variant`); isolation rewrites it to the bare variant
(and `module.Type { .. }` payload patterns to the mangled type).
Each verified through the semantic checker on a merged multi-file program (three
new tests in checker_frontend). Still deferred: cross-module same-named-variant
disambiguation (needs variant namespacing). lib 111 / frontend 197 / lowering
225 / vm_eval 17 green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments