mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-10 20:36:38 +00:00

We implicitly export the last component of a .slint file to the generator. Issue a warning when that happens and suggest to export it explicitly.
11 lines
345 B
Text
11 lines
345 B
Text
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
import { SomeRect } from "../../typeloader/incpath/local_helper_type.slint";
|
|
|
|
import { X } from "../../typeloader/incpath/should_fail.slint";
|
|
|
|
export Blah := X {
|
|
width: 100px;
|
|
// ^error{Unknown property width in X}
|
|
}
|