Why does this code compile? Shouldn't the `isIntegral` import be private to module `testB` unless I explicitly ask for it to be public?

// testB.d
module testB;

import std.traits : isIntegral;

// testA.d
module testA;

void main(string[] args) {
    import testB;
    static assert(isIntegral!int);
}

Reply via email to