slint/internal/compiler/tests/syntax/fuzzing/6650.slint
2024-11-11 16:08:22 +01:00

22 lines
615 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{'abc' must be called. Did you forgot the '\(\)'?}
}
TouchArea{
clicked=>{self.moved[9]()}
// ^error{'self.moved' must be called. Did you forgot the '\(\)'?}
}
}