This requires two files to reproduce.
a.d:
```
import b : foo;
void foo(char) {}
void main() {
foo!"a"(1);
}
```
b.d:
```
module b;
void foo(int[]) {}
void foo(string s)(int) {}
```
The error is:
```
a.d(6): Error: template instance `foo!"a"` `foo` is not a template declaration, it is a function alias
```
There is no error if I remove either `void foo(char) {}` or `void foo(int[]) {}`. There is also no error if I move the contents of `b.d` into `a.d`.
Comment #1 by robert.schadek — 2024-12-13T19:25:41Z