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 {

    t := Text {
        x: "hello";
//        ^error{Cannot convert string to length$}
        text: 45;
    }

    Text {
        x: t.text;
//        ^error{Cannot convert string to length$}
        y: 42;
//        ^error{Cannot convert float to length. Use an unit, or multiply by 1px to convert explicitly.}
        text: x;
//           ^error{Cannot convert length to string. Divide by 1px to convert to a plain number.}
        property<int> foo: y;
//                        ^error{Cannot convert length to int. Divide by 1px to convert to a plain number.}
        property<duration> bar: foo;
//                             ^error{Cannot convert int to duration. Use an unit, or multiply by 1ms to convert explicitly.}
    }

    Rectangle {
        color: "blue";
//            ^error{Cannot convert string to color$}
    }
}