1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3
4
5export TestCase := Rectangle {
6 Path {
7 MoveTo {
8 x: 0;
9 y: 0;
10 }
11 for sample[i] in [ 0, 1, 2, 3 ] : LineTo {
12// ^error{Path elements are not supported with `for`-`in` syntax, yet \(https://github.com/slint-ui/slint/issues/754\)}
13 x: i;
14 y: sample;
15 }
16 Close {}
17 }
18}
19