slint/internal/compiler/tests/syntax/basic/item_as_property.slint
2022-02-02 10:05:45 +01:00

15 lines
361 B
Text

// Copyright © SixtyFPS GmbH <info@sixtyfps.io>
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
Comp := Rectangle {
property <Rectangle> r;
// ^error{'Rectangle' is not a valid property type}
}
Foo := Rectangle {
xx := Rectangle { }
Comp {
r: xx;
// ^error{Cannot assign to r in Comp}
}
}