mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Fix panic when the forward-focus expression is invalid
Caused a crash of the LSP when having invalid element in the forward-focus property
This commit is contained in:
parent
d18ed9f799
commit
0d07d34c69
2 changed files with 9 additions and 1 deletions
8
internal/compiler/tests/syntax/focus/focus_invalid.slint
Normal file
8
internal/compiler/tests/syntax/focus/focus_invalid.slint
Normal file
|
@ -0,0 +1,8 @@
|
|||
// 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}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue