| 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 | |
| 4 | import { NotThere } from "file_not_there.slint" ; |
| 5 | // ^error{Cannot find requested import "file_not_there.slint" in the include search path} |
| 6 | |
| 7 | import { NotExported } from "../../typeloader/incpath/local_helper_type.slint" ; |
| 8 | // ^error{No exported type called 'NotExported' found in ".*\.\./\.\./typeloader/incpath/local_helper_type.slint} |
| 9 | |
| 10 | import { Nothing } from "" ; |
| 11 | // ^error{Unexpected empty import url} |
| 12 | |
| 13 | import "../../typeloader/incpath/local_helper_type.slint" ; |
| 14 | //^error{Import names are missing. Please specify which types you would like to import} |
| 15 | |
| 16 | import "myimage.png" ; |
| 17 | // ^error{Unsupported foreign import "myimage.png"} |
| 18 | |
| 19 | import "." ; |
| 20 | // ^error{Unsupported foreign import ".*"} |
| 21 | |
| 22 | export X := Rectangle { |
| 23 | |
| 24 | } |
| 25 | |