18 lines
532 B
Text
18 lines
532 B
Text
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
||
|
|
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||
|
|
|
||
|
|
// A *primary* module interface unit — no partitions — that imports another
|
||
|
|
// module and embeds one of its types by value. The import lives here rather
|
||
|
|
// than in a partition on purpose: that is the edge issue #26 was missing.
|
||
|
|
export module Widget;
|
||
|
|
import std;
|
||
|
|
export import Base;
|
||
|
|
|
||
|
|
export namespace Demo {
|
||
|
|
class Thing {
|
||
|
|
public:
|
||
|
|
Payload payload;
|
||
|
|
std::int32_t tail = 0;
|
||
|
|
void Fill();
|
||
|
|
};
|
||
|
|
}
|