ErrorsProject layout and modules · rule
syntax.import_statement
Import written in another language's form.
Area 1, Project layout and modules; not declinable; the next step is usually the agent's.
A file brings names in with use <folder> { Names }; jadpo fmt writes those lines.
import { Count } from "./shared/types"function same(count: Count) -> Count { return count}
error Jadpo writes use, not import
--> main.jadpo:1:1
|1 | import { Count } from "./shared/types" | ^^^^^^ write `use`
- reason
import … frombrings names into a JavaScript or TypeScript file,from … importinto a Python module andimport a.b.Cinto a Java or Kotlin file; a Jadpo file brings names in from a folder withuse <folder> { Names }, andjadpo fmtwrites those lines for you.- next
- Write
use shared/types { Count }(agent) - rule
- syntax.
import_ statement - help
- https://jadpo.
dev/docs/errors/syntax. import_ statement
Markdown for agents: /docs/errors/syntax.import_statement.md.Built from Jadpo main at aee2e8f.