/* LICENSE BEGIN
This file is part of the SixtyFPS Project -- https://sixtyfps.io
Copyright (c) 2020 Olivier Goffart <olivier.goffart@sixtyfps.io>
Copyright (c) 2020 Simon Hausmann <simon.hausmann@sixtyfps.io>
SPDX-License-Identifier: GPL-3.0-only
This file is also available under commercial licensing terms.
Please contact info@sixtyfps.io for more information.
LICENSE END */
Hello := Rectangle {
width: 100px;
height: 100px;
color: white;
property<length> top_level: 42px;
property<bool> cond1;
property<bool> cond2;
property<bool> cond3;
if (cond1) : Rectangle {
color: root.color;
property<length> xx: root.top_level;
}
if (cond1 ? cond2 : cond3) : Rectangle {
}
if (width) : Rectangle {
// ^error{Cannot convert length to bool}
}
}