/* LICENSE BEGIN This file is part of the SixtyFPS Project -- https://sixtyfps.io Copyright (c) 2021 Olivier Goffart Copyright (c) 2021 Simon Hausmann 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 */ SubElement := Rectangle { foo := Rectangle { background: yellow; hello := Rectangle {} // ^warning{duplicated element id 'hello'} } unique := Rectangle { background: yellow; world := Rectangle {} // ^warning{duplicated element id 'world'} } if (true) : hello := Rectangle { // ^warning{duplicated element id 'hello'} world := Rectangle { } // ^warning{duplicated element id 'world'} } hello := Rectangle {} // ^warning{duplicated element id 'hello'} } TestCase := Rectangle { unique := Rectangle { foo := SubElement { } // ^warning{duplicated element id 'foo'} } bar := TouchArea {} // ^warning{duplicated element id 'bar'} Rectangle { foo := Text {} // ^warning{duplicated element id 'foo'} bar := Text {} // ^warning{duplicated element id 'bar'} } }