slint/internal/compiler/tests/syntax/lookup/callback_alias_issue4938.slint
Olivier Goffart ea0227098a Throw an error when a callback aliases itself
Instead of panicking
Fixes #4938
2024-03-26 18:14:31 +01:00

7 lines
255 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 component Xxx {
callback issue4938 <=> issue4938;
// ^error{Cannot alias to itself}
}