LDC-E2121 — A wrong parameter count on a parametric type
For LLMs5 sections
What it means
Section titled “What it means”Some type names take parameters, and each of them takes a fixed number: one element type for a list or an option, two for a map, and so on. The closed table of parametric names and their counts is part of the language, so a count that does not match the table cannot mean anything the compiler could keep. The compiler stops at the type expression and names the shape it expected.
The fix stays inside the type expression: add the missing parameter or drop the extra one until the count matches the table. A name outside the table takes no parameter at all and is refused under a different code.
Example
Section titled “Example”language "law.core" version "0.2";package demo.diagnostics version "0.1.0";namespace "urn:law:demo:diagnostics";
entity KZT;relation r(x: Option<Integer, Text>) kind empirical;language "law.core" version "0.2";package demo.diagnostics version "0.1.0";namespace "urn:law:demo:diagnostics";
entity KZT;relation r(x: Option<Integer>) kind empirical;Documentation for Arxo. Writings — blog.arxo.io.
Anonymous visit counts on stats.arxo.io, no cookies.