let's create two files:
=== z00.d ===
module z00;
import z01;
void main () {
auto a = new A();
}
=== z01.d ===
module z01;
class A {
void test () {
import somethingcool;
}
}
now run
dmd -v -o- z01.d | grep import | grep something
the output is empty. no mention of `somethingcool` anywhere.
this bug makes rdmd fail if i'm importing some non-phobos modules in this manner: as rdmd doesn't see the dependency, it doesn't add it to build list and… oops.