dmd/compiler/test/runnable/test17181b.d
2022-07-09 18:53:07 +02:00

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() {}