February 21, 2015 UFCS on template alias ? | ||||
|---|---|---|---|---|
| ||||
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[]'"
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply