slint/internal/compiler/tests/syntax/focus/focus_invalid.slint
Olivier Goffart 0d07d34c69 Fix panic when the forward-focus expression is invalid
Caused a crash of the LSP when having invalid element in the
forward-focus property
2022-10-18 10:13:55 +02:00

8 lines
233 B
Text

// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
X := Rectangle {
forward-focus: nothingness;
// ^error{Unknown unqualified identifier}
}