1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3
4export Xxx := Rectangle {
5
6 foo := Rectangle {
7 callback hello(int) -> int;
8 }
9
10 callback bar(int) -> int;
11 bar <=> foo.hello;
12// ^error{Unknown property bar in Rectangle}
13
14
15 // #3085
16 callback row-pointer-event <=> dontexist;
17// ^error{Unknown unqualified identifier 'dontexist'}
18// ^^error{Binding to callback 'row-pointer-event' must bind to another callback}
19 row-pointer-event => {}
20// ^error{Duplicated callback}
21}
22