Possible bug of "missing matching more than one candidate" in overload set
user1234
user1234 at 12.de
Fri Feb 13 12:25:30 UTC 2026
What do you think about that ?
```d
alias Seq(T...) = T;
void f()()
{
static assert(0);
}
void f(T...)()
{
}
void main()
{
f!(Seq!())();
}
```
> /tmp/temp_7FE084898C90.d(5,5): Error: static assert: `0` is
> false
Shouldn't the variadic version be selected instead ? Note that
the program compiles when you remove one or the other `f`.
More information about the Digitalmars-d-learn
mailing list