UFCS on template alias ?

Baz via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Feb 21 00:35:58 PST 2015


Is this a normal behaviour ?

---
void main()
{
     import std.algorithm;
     auto list = [0,1,2,3];
     alias poly = map;
     list.poly!(a => a + a);
}
---

outputs:

"Error: no property 'poly' for type 'int[]'"


More information about the Digitalmars-d-learn mailing list