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:
Olivier Goffart 2022-10-18 09:45:57 +02:00 committed by Olivier Goffart
parent d18ed9f799
commit 0d07d34c69
2 changed files with 9 additions and 1 deletions

View 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}
}