what wrong with this alias

Steven Schveighoffer schveiguy at gmail.com
Mon Jan 9 19:37:35 UTC 2023


On 1/8/23 12:42 AM, Qusatlegadus wrote:
>      auto s = 1234.to!string.map!q{a - '0'}.sum;
> works fine.
> 
> 
> but if i do an alias
> 
>      alias comb = to!string.map!q{a - '0'}
> 
>      Error: unknown, please file report on issues.dlang.org
> 
> What's wrong with this alias?

Aside from the problem with the code, that error alone deserves a bug 
report so...

https://issues.dlang.org/show_bug.cgi?id=23615

-Steve


More information about the Digitalmars-d-learn mailing list