slint/internal/compiler/tests/syntax/basic/for.slint
2023-06-16 10:55:08 +02:00

23 lines
441 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
export SuperSimple := Rectangle {
background: 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 {}
}
}