| 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 | component Foo { |
| 5 | foo := {} |
| 6 | // ^error{Syntax error: expected Identifier} |
| 7 | |
| 8 | Image {} |
| 9 | |
| 10 | bar := |
| 11 | } |
| 12 | //^error{Syntax error: expected Identifier} |
| 13 | |
| 14 | component Bar inherits { |
| 15 | // ^error{Syntax error: expected Identifier} |
| 16 | if true : {} |
| 17 | // ^error{Syntax error: expected Identifier} |
| 18 | } |
| 19 |
