I've raised https://issues.dlang.org/show_bug.cgi?id=10378 to critical. Please chime in with ideas for a good solution. Thanks! -- Andrei
What about requiring all local imports to be statically imported?
module a;
int i;
module b;
int test(int i)
{
//Error, local imports must be static
//import a;
//Okay
static import a;
}
