LDC-E1362 — Case use without a snapshot
For LLMs5 sections
What it means
Section titled “What it means”A case composes external input through named snapshots: a top-level
snapshot declaration binds an alias to an exported file, and the
case body attaches it with use. A use that names no declared
snapshot attaches nothing — the alias points nowhere, so the case
would compute with input missing. The compiler stops at the use
rather than running a case whose composition is incomplete.
The repair is to declare the snapshot the use names, or to drop the use. An alias with no declaration is either a missing snapshot or a leftover reference — the fix declares which.
Example
Section titled “Example”{"argv": ["lower-case", "$ROOT/case.law"], "files": {"case.law": "language \"law.core\" version \"0.2\";\npackage demo.diagnostics version \"0.1.0\";\nnamespace \"urn:law:demo:diagnostics\";\n\nentity A;\n\ncase Solo {\n context {\n legal_time @2026-08-26;\n }\n\n use Ghost {\n record \"urn:law:demo:diagnostics#r1\";\n }\n}\n"}, "expect": "LDC-E1362"}{"argv": ["lower-case", "$ROOT/case.law"], "files": {"case.law": "language \"law.core\" version \"0.2\";\npackage demo.diagnostics version \"0.1.0\";\nnamespace \"urn:law:demo:diagnostics\";\n\nentity A;\n\ncase Solo {\n context {\n legal_time @2026-08-26;\n }\n}\n"}, "expect": null}Documentation for Arxo. Writings — blog.arxo.io.
Anonymous visit counts on stats.arxo.io, no cookies.