LDC-E1102 — A package cannot import itself
For LLMs5 sections
What it means
Section titled “What it means”Imports form a dependency graph between packages, and that graph must stay acyclic: a package already sees everything it declares, so naming itself as a dependency is never needed and always rejected. When the import names the very package being written, the compiler stops at the import line.
The repair is deletion: remove the self-import. Nothing it could have provided is lost, because the own declarations were visible all along.
Example
Section titled “Example”language "law.core" version "0.2";package demo.diagnostics version "0.1.0";namespace "urn:law:demo:diagnostics";import demo.diagnostics version "0.1.0";
entity Applicant;language "law.core" version "0.2";package demo.diagnostics version "0.1.0";namespace "urn:law:demo:diagnostics";
entity Applicant;Documentation for Arxo. Writings — blog.arxo.io.
Anonymous visit counts on stats.arxo.io, no cookies.