Error code · a mistake in the document
dt::type
Kinds do not agree: a length mixed with a plain number, or a place of the wrong kind.
What the program says
dt::type
× `dirt top`: `($dirtEdgeHeight + 20%)` mixes a length and a plain number
╭─[example.dtile:3:22]
2 │ tile size="1x1" {
3 │ stack { dirt top="$dirtEdgeHeight + 20%" }
· ───────────┬───────────
· ╰── here
4 │ }
╰────
help: give the number its unit: `4dmm` or `4mm`; a plain number is a count
or a fraction, never a length
explain: https://dharmatiles.healtoletgo.com/e/type
offline: dharmatiles explain dt::type
What to do
Make both sides the same kind; the message says what to write.
Broken, then fixed
dt::typedharmatiles version="1.0.0"
tile size="1x1" {
stack { dirt top="$dirtEdgeHeight + 20%" }
}dharmatiles version="1.0.0"
tile size="1x1" {
stack { dirt top="$dirtEdgeHeight + 2dmm" }
}The rule
Lengths, angles and plain numbers are checked apart, before anything is built. A control wants a kind, and a formula has the kind its parts give it:
Read it in context: Kinds · Lengths, angles and plain numbers are checked apart