slint/sixtyfps_compiler/tests/basic/path.60
2020-07-09 14:18:26 +02:00

15 lines
372 B
Text

TestCase := Rectangle {
Path {
LineTo { x: 100; y: 0; }
LineTo { x: 100; y: 0; }
LineTo { x: 100; y: 0; }
Rectangle {}
// ^error{Rectangle is not allowed within Path. Only ArcTo Close LineTo are valid children}
}
LineTo { x: 100; y: 0; }
// ^error{LineTo can only be within the following elements: Path, PathLayout}
}