We'll need two more test cases to work.

```d
void test5()
{
    import pkg.datetime;
    pkg.datetime.def();
}

void test6()
{
    static import pkg.datetime;
    static assert(!__traits(compiles, def()));
    pkg.datetime.def();
}
```