slint/sixtyfps_compiler/tests/basic/object_in_binding.60

9 lines
301 B
Text

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