slint/sixtyfps_compiler/tests/syntax/basic/sub_elements.60
2020-08-04 15:58:40 +02:00

27 lines
367 B
Text

SubElements := Rectangle {
Rectangle {
color: yellow;
}
color: blue;
Rectangle {
color: red;
}
foo := Rectangle {}
parent := Rectangle {}
// ^error{'parent' is a reserved id}
root := Rectangle {
// ^error{'root' is a reserved id}
self := Rectangle {}
// ^error{'self' is a reserved id}
}
}