LDC-W1115 — A declaration shadowing a prelude type
For LLMs5 sections
What it means
Section titled “What it means”The prelude ships a small set of well-known types that every package can name without declaring. Declaring a local entity under one of those names does not break anything — the bare name then resolves to the local declaration, and the prelude type stays reachable by its qualified path — but every reader of the package must now remember which of the two a bare occurrence means.
The warning asks whether the shadowing is deliberate. If it is, keep the name and qualify prelude uses. If it is an accident of naming, rename the local declaration and the warning goes with it.
Example
Section titled “Example”language "law.core" version "0.2";package demo.diagnostics version "0.1.0";namespace "urn:law:demo:diagnostics";
entity Actor;language "law.core" version "0.2";package demo.diagnostics version "0.1.0";namespace "urn:law:demo:diagnostics";
entity Performer;Documentation for Arxo. Writings — blog.arxo.io.
Anonymous visit counts on stats.arxo.io, no cookies.