slint/sixtyfps_compiler/tests/syntax/basic/double_binding.60
2020-09-23 14:06:08 +02:00

28 lines
736 B
Text

/* 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 {
x: 42px;
x: 32px;
// ^error{Duplicated property binding}
width: 12px;
width <=> self.height;
// ^error{Duplicated property binding}
not_exist <=> 12px;
// ^error{Unknown property not_exist in Rectangle}
property <int> foo: 12;
foo: 13;
// ^error{Duplicated property binding}
}