slint/sixtyfps_compiler/tests/basic/object_in_binding.60
2020-07-14 17:45:03 +02:00

9 lines
299 B
Text

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