slint/internal/compiler/tests/syntax/fuzzing/6650.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

22 lines
614 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 component Foo {
property <[int]> name;
TouchArea{
clicked=>{debug[9]()}
// ^error{Builtin function must be called}
}
TouchArea{
function abc(x:int){}
clicked=>{abc[9]()}
// ^error{Function must be called. Did you forgot the '\(\)'?}
}
TouchArea{
clicked=>{self.moved[9]()}
// ^error{Callback must be called. Did you forgot the '\(\)'?}
}
}