ErrorsStandard library · rule
type.standard_clash
Declaration has a standard type's name.
Area 19, Standard library; not declinable; the next step is usually the agent's.
A declaration named like a standard type: a Jadpo release added the
standard type after the application named its own. Its fixes are the swap
and the rename, each made by jadpo fix.
/// A room booking's reference, from before Jadpo had a `Uuid` of its own.type Uuid = Text { max_length: 36}
error Uuid is the name of a standard type
--> main.jadpo:2:6
|2 | type Uuid = Text { | ^^^^ standard since Jadpo 0.1.0
- reason
- Jadpo 0.1.0 added the standard type
Uuid, and the application's own type can't share its name, orUuidwould mean two things. An upgrade never changes what code means silently, socheckstops here until this type is swapped for the standard type or renamed. - next
- Run
jadpo fix Uuid swapto use the standardUuidin its place, orjadpo fix Uuid rename <NewName>to keep this one under a name of its own (agent) - rule
- type.
standard_ clash - help
- https://jadpo.
dev/docs/errors/type. standard_ clash
Markdown for agents: /docs/errors/type.standard_clash.md.Built from Jadpo main at aee2e8f.