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
5component Foo {
6 background: 0;
7// ^error{Unknown property background$}
8 width: 12px;
9}
10
11component Bar {
12 Foo {
13 Rectangle { }
14// ^error{'Foo' cannot have children. Only components with @children can have children}
15 }
16 Foo {
17 background: 0;
18// ^error{Unknown property background in Foo}
19 height: self.width;
20 }
21
22 @children
23}
24
25export component Baz {
26 Bar {
27 Foo {}
28 }
29}
30