slint/sixtyfps_compiler/tests/syntax/basic/object_in_binding.60
2020-08-03 16:15:41 +02:00

9 lines
293 B
Text

H := Rectangle {
x: {foo: "42"};
// ^error{Cannot convert \{ foo: string,\} to length}
y: [ 45, 45, 45, 45 ];
// ^error{Cannot convert \[float\] to length}
color: [ { a: 45, b: 55, }, {a: 44, b: 54},];
// ^error{Cannot convert \[\{ a: float,b: float,\}\] to color}
}