Bug?

JG someone at somewhere.com
Tue Jun 14 19:35:28 UTC 2022


Hi,

Is this a bug?
```d
import std;

template test(alias f) {

     auto test(I)(I i) { return f(i); }
}

void main()
{
     alias t = test!(x=>x+1);
     1.t.writeln; //<--Doesn't compile
     1.test!(x=>x+1).writeln;
     t(1).writeln;
}
```


More information about the Digitalmars-d-learn mailing list