1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3
4export TestCase := Window {
5 ta := TouchArea { }
6
7 Rectangle {
8 property foo;
9// ^error{Missing type. The syntax to declare a property is `property <type> name;`. Only two way bindings can omit the type}
10 property bar: 45;
11// ^error{Missing type. The syntax to declare a property is `property <type> name;`. Only two way bindings can omit the type}
12 property hello <=> ta.pressed;
13
14 property <=> ta.pressed;
15
16 property yo yo;
17// ^error{Missing type. The syntax to declare a property is `property <type> name;`. Only two way bindings can omit the type}
18// ^^error{Syntax error: expected ';'}
19// ^^^error{Parse error}
20
21
22 }
23}
24