| 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 | export TestCase := Window { |
| 5 | if // |
| 6 | Foo { } |
| 7 | // ^error{expected ':'} |
| 8 | // ^^error{Parse error} |
| 9 | } |
| 10 | //^error{Parse error: expected a top-level item such as a component, a struct, or a global} |
| 11 |
