mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
15 lines
467 B
Text
15 lines
467 B
Text
|
|
Test := Rectangle {
|
|
property<int> foo;
|
|
foo: 100;
|
|
property<NonExistent> bar;
|
|
// ^error{Unknown property type 'NonExistent'}
|
|
property<float> foo;
|
|
// ^error{Cannot override property 'foo'}
|
|
property<string> text: "property with binding initializer";
|
|
property<int> x;
|
|
// ^error{Cannot override property 'x'}
|
|
|
|
property<string> colspan;
|
|
// ^error{Cannot override property 'colspan'}
|
|
}
|