| 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 | component Foo { |
| 5 | // ^error{The binding for the property 'layoutinfo-h' is part of a binding loop} |
| 6 | // ^^error{The binding for the property 'layoutinfo-h' is part of a binding loop} |
| 7 | HorizontalLayout { |
| 8 | // ^error{The binding for the property 'layout-cache' is part of a binding loop} |
| 9 | // ^^error{The binding for the property 'width' is part of a binding loop} |
| 10 | // ^^^error{The binding for the property 'width' is part of a binding loop} |
| 11 | // ^^^^error{The binding for the property 'layoutinfo-h' is part of a binding loop} |
| 12 | // ^^^^^error{The binding for the property 'layout-cache' is part of a binding loop} |
| 13 | // ^^^^^^error{The binding for the property 'width' is part of a binding loop} |
| 14 | // ^^^^^^^error{The binding for the property 'width' is part of a binding loop} |
| 15 | // ^^^^^^^^error{The binding for the property 'layoutinfo-h' is part of a binding loop} |
| 16 | |
| 17 | Text { |
| 18 | text: "hello" ; |
| 19 | font_size: self.width / 2.5; |
| 20 | // ^error{The binding for the property 'font-size' is part of a binding loop} |
| 21 | // ^^error{The binding for the property 'font-size' is part of a binding loop} |
| 22 | } |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | component Bar { |
| 27 | // ^error{The binding for the property 'layoutinfo-h' is part of a binding loop} |
| 28 | HorizontalLayout { |
| 29 | // ^error{The binding for the property 'layout-cache' is part of a binding loop} |
| 30 | // ^^error{The binding for the property 'width' is part of a binding loop} |
| 31 | // ^^^error{The binding for the property 'width' is part of a binding loop} |
| 32 | // ^^^^error{The binding for the property 'width' is part of a binding loop} |
| 33 | // ^^^^^error{The binding for the property 'layoutinfo-h' is part of a binding loop} |
| 34 | Foo {} |
| 35 | Foo {} |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | export component Apps inherits Window { |
| 40 | Bar {} |
| 41 | // ^error{The binding for the property 'preferred-width' is part of a binding loop} |
| 42 | // ^^error{The binding for the property 'width' is part of a binding loop} |
| 43 | } |
| 44 | |