mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
16 lines
498 B
D
16 lines
498 B
D
// EXTRA_SOURCES: imports/test17181a.d
|
|
// EXTRA_FILES: imports/test17181c.d
|
|
module test17181b;
|
|
|
|
import imports.test17181c; // only imported, not compiled
|
|
// => must not be in ModuleInfo.importedModules
|
|
|
|
static this()
|
|
{
|
|
// By instantiating the getA template, its local imports.test17181a
|
|
// import is added to this module (not to imports.test17181c), and its
|
|
// module ctor must have run already.
|
|
assert(imports.test17181c.getA!() == 1);
|
|
}
|
|
|
|
void main() {}
|