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
4import { X } from "../../typeloader/incpath/should_fail2.slint";
5
6export Foo := Rectangle {
7 x:= X {
8 hello: 42;
9 meh: 12;
10// ^error{Unknown property meh in X}
11 }
12 background: x.blah;
13 // ^error{Element 'X' does not have a property 'blah'}
14}
15