slint/internal/compiler/tests/syntax/parse_error/state3.slint

11 lines
310 B
Text

// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.0 OR LicenseRef-Slint-commercial
export TestCase := Rectangle {
states [
checked when true: {
foo
}
// ^error{Syntax error: expected ':'}
]
}