mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
17 lines
397 B
Text
17 lines
397 B
Text
SuperSimple := Rectangle {
|
|
TouchArea {
|
|
clicked => { root.x += 1; }
|
|
}
|
|
TouchArea {
|
|
clicked => { x += 1; }
|
|
}
|
|
TouchArea {
|
|
clicked => { 12 += 1; }
|
|
// ^error{Self assignement need to be done on a property}
|
|
}
|
|
TouchArea {
|
|
clicked => { x += "string"; }
|
|
// ^error{Cannot convert string to float32}
|
|
}
|
|
}
|
|
|