slint/internal/compiler/tests/syntax/imports/invalid_export.slint
2023-07-10 10:12:11 +02:00

15 lines
472 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 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}
}