ErrorsValues and types · rule
type.base_outside_declaration
Base is used outside a type declaration.
Area 2, Values and types; not declinable; the next step is usually the agent's.
There is no unnamed object: Object, Enum, Input and Output appear only after = (question 19):
type Basket = Object { details: Object}
error Object is used as a type
--> main.jadpo:2:14
|2 | details: Object | ^^^^^^ only a base
- reason
Objectis written only after=in atypedeclaration; every shape has a name, so a field or signature names that type.- next
- Declare
type Name = Object { ... }and use its name here (agent) - rule
- type.
base_ outside_ declaration - help
- https://jadpo.
dev/docs/errors/type. base_ outside_ declaration
Markdown for agents: /docs/errors/type.base_outside_declaration.md.Built from Jadpo main at aee2e8f.