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 LineTo { x: 100; y: 0; }
8 LineTo { x: 100; y: 0; }
9 LineTo { x: 100; y: 0; }
10 Rectangle {}
11// ^error{Rectangle is not allowed within Path. Only ArcTo Close CubicTo LineTo MoveTo QuadraticTo are valid children}
12 }
13
14 LineTo { x: 100; y: 0; }
15// ^error{LineTo can only be within a Path element}
16}
17