ErrorsValues and types · rule
syntax.type_parent_required
Type has no base.
Area 2, Values and types; not declinable; the next step is usually the agent's.
type BoxSize = { width: Int}
error BoxSize needs a base type
--> main.jadpo:1:16
|1 | type BoxSize = { | ^ expected a base before `{`
- reason
- Every type is written
type Name = Base { ... }; the base says what it is built from, such asObject,Enum,InputorText. - next
- Add the base before
{, for exampletype BoxSize = Object {(agent) - rule
- syntax.
type_ parent_ required - help
- https://jadpo.
dev/docs/errors/syntax. type_ parent_ required
Markdown for agents: /docs/errors/syntax.type_parent_required.md.Built from Jadpo main at aee2e8f.