You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
struct S(size_t _)
{
// void foo(size_t i)(S!(i) rhs){} //OK
void foo(size_t i)(S!(+i) rhs){} //Error
void foo(){}
}
void main()
{
S!4 v1;
v1.foo();
}
test.d(4): Error: undefined identifier 'i'
Also, if I comment out the `void foo(){}` overload the compiler still complains about the undefined identifier, but also prints the "cannot deduce function from argument types" as expected.
The text was updated successfully, but these errors were encountered:
John Colvin (@John-Colvin) reported this on 2017-01-25T00:26:29Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=17120
Description
The text was updated successfully, but these errors were encountered: