https://issues.dlang.org/show_bug.cgi?id=17366
Adam D. Ruppe <destructiona...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |destructiona...@gmail.com --- Comment #2 from Adam D. Ruppe <destructiona...@gmail.com> --- No, it isn't a template. Try putting `import external.module;` inside. If it is a template, there's no "cannot find module" error unless you actually call it (lazy local imports), but for a function, the error does exist. final foo() { import...} DOES produce the error. Ditto for `auto ref` parameters, they aren't allowed here either. --