mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 13:51:13 +00:00
16 lines
557 B
Text
16 lines
557 B
Text
// Copyright © SixtyFPS GmbH <info@sixtyfps.io>
|
|
// SPDX-License-Identifier: (GPL-3.0-only OR LicenseRef-SixtyFPS-commercial)
|
|
|
|
Xxx := Rectangle {
|
|
|
|
foo := Rectangle {
|
|
callback hello(int) -> int;
|
|
}
|
|
|
|
callback plop(int) -> int <=> foo.hello;
|
|
// ^error{When declaring a callback alias, one must omit parentheses. e.g. 'callback foo <=> other.bar;'}
|
|
|
|
callback plopsi() <=> foo.hello;
|
|
// ^error{When declaring a callback alias, one must omit parentheses. e.g. 'callback foo <=> other.bar;'}
|
|
|
|
}
|