slint/internal/compiler/tests/syntax/exports/export_duplicates.slint
Tobias Hunger bbdd6aeab7 compiler: Ignore leading whitespace when parsing
... and update all out test cases accordingly.
2023-04-26 17:22:13 +02:00

14 lines
402 B
Text

// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
Foo := Rectangle {}
Bar := Rectangle {}
export { Foo }
// ^error{Duplicated export 'Foo'}
export { Foo }
// ^error{Duplicated export 'Foo'}
export { Bar }
// ^error{Duplicated export 'Bar'}
export { Foo as Bar }
// ^error{Duplicated export 'Bar'}