T124errorwarning

Binding has the wrong type

A p-class, :class, p-style, p-key or p-context binding has a type it does not expect.

It is an error when :class is not a string, slice or map. It is a warning when p-class or p-style has another type, when p-key is a struct, map or slice, or when p-context does not resolve to a string.

Give the binding the type the message names.

$ piko explain T124

Build 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 CodeBindingTypeError in Piko's source to see where it is reported.