slint/sixtyfps_compiler/tests/basic/for.60
Olivier Goffart 9adc55cd70 Partially revert the refactoring that changed the Element::children list
Put the information about RepeatedElement in an Option within the normlal Element
2020-06-15 13:42:11 +02:00

21 lines
273 B
Text

SuperSimple := Rectangle {
color: green;
for xx Text {}
// ^error{Invalid 'for' syntax: there should be a 'in' token}
for xx in zz: Hello {
Rectangle {}
}
Image {
}
for xx[idx] in zz: Hello {
Rectangle {}
}
}