slint/internal/compiler/tests/syntax/lookup/callback_not_called.slint
Olivier Goffart ed179cd5b1
Refactoring: get rid in the callable in the Expression tree
Have a special node for them in FunctionCall
2025-01-24 20:26:35 +01:00

13 lines
373 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
export Demo := Window {
callback foobar;
TouchArea {
clicked => {
root
// ^error{Callback must be called. Did you forgot the '\(\)'\?}
.foobar
}
}
}