T120error

Invalid p-for expression

A p-for expression is not a valid loop, or loops over a type that cannot be iterated.

p-for takes the form item in items, or (index, item) in items, over a slice, array, map, string or integer.

Write the loop as item in items over an iterable value.

$ piko explain T120

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