T141error
Invalid comparison
The two sides of a comparison cannot be compared.
When it is reported
Ordering operators (<, >, <=, >=) need ordered types of the same kind. Equality is checked strictly: a named type and a plain literal of its underlying type, such as a named string type and a string, cannot be compared directly.
How to fix it
Convert one side so both have the same type, or compare a field that has a comparable type.
In your terminal and editor
$ piko explain T141Build output ends each diagnostic with a link to this page, and editors using the Piko language server link the code under the squiggle. Look for CodeComparisonError in Piko's source to see where it is reported.