slint/internal/compiler/tests/syntax/exports/reexport_duplicate.slint
Simon Hausmann 554d153e35 Limit re-exporting of types
- Only allow one module re-export per file
- Warn when a re-exported type clashes with a locally exported type, and prioritize the local type.
2022-12-09 11:05:08 +01:00

13 lines
589 B
Text

// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
export * from "../../typeloader/incpath/local_helper_type.slint";
// ^warning{'SomeRect' is already exported in this file; it will not be re-exported}
export * from "../../typeloader/incpath/dependency_from_incpath.slint";
// ^error{re-exporting modules is only allowed once per file}
export * from "../../typeloader/incpath/dependency_from_incpath.slint";
// ^error{re-exporting modules is only allowed once per file}
export SomeRect := Rectangle {}