sixtyfps-compilerlib 0.0.1

Internal SixtyFPS compiler library
Documentation
/* 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 */

X := Rectangle {

    property <color> my_color <=> self.color;
    x <=> y;
    width <=> self.height;


    border_color <=> blue;
//  ^error{The expression in a two way binding must be a property reference}
    border_width <=> 4lx + 4lx;
//  ^error{The expression in a two way binding must be a property reference}

    xx := Rectangle {
        x: 42px;
        width <=> parent.width;
        height <=> x;
        color <=> root.x;
//      ^error{The property does not have the same type as the bound property}
        y <=> y;
//      ^error{Property cannot alias to itself}
    }

    property <int> dd <=> dd;
//                    ^error{Property cannot alias to itself}
}