mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 13:24:48 +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.
15 lines
434 B
Text
15 lines
434 B
Text
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
export { Foo as Bar }
|
|
// ^error{'Foo' not found}
|
|
|
|
export { Image as Plop }
|
|
// ^error{Cannot export 'Image' because it is not a component}
|
|
|
|
export { string as Boob }
|
|
// ^error{Cannot export 'string' because it is not a component}
|
|
|
|
export Hello := Plop {
|
|
// ^error{Unknown type Plop}
|
|
}
|