Can't create immutable type in template

Jonathan M Davis jmdavisProg at gmx.com
Sun Jul 15 16:44:57 PDT 2012


On Monday, July 16, 2012 01:38:05 Nick Gurrola wrote:
> import std.stdio;
> 
> void main()
> {
>         writeln(typeid(Test!int));
> }
> 
> template Test(T...)
> {
>         alias immutable(T[0]) Test;
> }

It looks like a bug to me.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list