ErrorsValues and types · rule
type.copy_clash
Copied field would replace another field.
Area 2, Values and types; not declinable; the next step is usually the agent's.
type TodoView = Output { pick: [Todo.id, Todo.title, Note.title]}
error title is already in TodoView, from Todo
--> main.jadpo:2:33
|2 | pick: [Todo.id, Todo.title, Note.title] | ^^^^^^^^^^ copied again
- reason
- A copied field never replaces another field, because a field added to a source type would then change this type unseen.
- next
- Remove
titlefrom one of them withomit: [...], or writetitleas a field below them (agent) - rule
- type.
copy_ clash - help
- https://jadpo.
dev/docs/errors/type. copy_ clash
Markdown for agents: /docs/errors/type.copy_clash.md.Built from Jadpo main at aee2e8f.