KQ272 — a constant's type fits where it is used
Error · constant-type-fits · Policies
A constant used in a bound is a period or a number in the unit its clause takes; as quoted text, a string; in a period's place, a period; as an open property's value, its declared type's.
A constant is used where its type doesn't fit: const OWNER = "Owner" in rotate: over OWNER, const ROTATION = 90 in rotate ROTATION, or const OWNER = P90D as a text property's value. A bound takes a period or a number, in the unit its clause compares; a quoted clause value takes text; a period's place takes a period; an open property takes its declared type's, and a date, an enum or a ref none. A constant's type is read from how its value is written, so "P18M" in quotes is text. Use a constant of the right type, or write the value where it is used.
Examples
MAX_SECRET_ROTATION is a number, and a bound on rotate takes a period, so it raises KQ272:
Written as the period P90D, it raises nothing:
© 2026 Extenza Works. All rights reserved.