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// Verify that we can instantiate sub-components in nested repeaters
5// and succeed in generating code that determines the root correctly,
6// to access global singletons.
7
8Label := Text {
9
10}
11
12SubCompo := Rectangle {
13 for x in 1: Rectangle {
14 for y in 1: Label {
15 for z in 1: Label {
16 }
17 }
18 }
19}
20
21TestCase := Rectangle {
22 width: 300phx;
23 height: 300phx;
24 SubCompo {}
25}
26