mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-11 21:06:31 +00:00
22 lines
615 B
Text
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 '\(\)'?}
|
|
}
|
|
}
|
|
|