slint/internal/compiler/tests/syntax/parse_error/if0.slint
2023-06-16 10:55:08 +02:00

10 lines
362 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
export TestCase := Window {
if //
Foo { }
// ^error{expected ':'}
// ^^error{Parse error}
}
//^error{Parse error: expected a top-level item such as a component, a struct, or a global}