Skip to content
docs
Arxo ↗

LDC-E0206 — A value the slice does not store

For LLMs5 sections

Some shapes are grammar-valid but outside what the current slice keeps: an explicit numeric value on an enumeration variant, a selection of imported names in braces, an alias. The parser recognizes the shape and refuses it with its own message instead of a generic syntax error, so the author learns which construct to avoid rather than where a comma goes.

The remedy is the slice form of the same declaration: variants addressed by name alone, imports without selections or aliases. Nothing else in the package changes.

Arxo Law
language "law.core" version "0.2";
package demo.diagnostics version "0.1.0";
namespace "urn:law:demo:diagnostics";
enum Color { Red = 1; }
Arxo Law
language "law.core" version "0.2";
package demo.diagnostics version "0.1.0";
namespace "urn:law:demo:diagnostics";
enum Color { Red; Green; }

The engine reports this in its own wording:

Output
example.law:5:18: error LDC-E0206: enum variant value §38 outside slice 0.1: the variant is addressed by its name

Documentation for Arxo. Writings — blog.arxo.io.

Anonymous visit counts on stats.arxo.io, no cookies.