mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 13:51:13 +00:00

Since commit 6fefe75a1c
the handling
of forward-focus bindings happens before the resolve_expressions pass,
which means that we cannot rely on type mismatch
error handling yet.
Fixes #4475
12 lines
387 B
Text
12 lines
387 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
|
|
|
|
export X := Rectangle {
|
|
forward-focus: nothingness;
|
|
// ^error{Unknown unqualified identifier}
|
|
}
|
|
|
|
export Y := Rectangle {
|
|
forward-focus: true;
|
|
// ^error{Cannot convert bool to element ref}
|
|
}
|