Can't create immutable type in template

Nick Gurrola ngurrola17 at gmail.com
Sun Jul 15 16:38:05 PDT 2012


import std.stdio;

void main()
{
	writeln(typeid(Test!int));
}

template Test(T...)
{
	alias immutable(T[0]) Test;
}


This prints "int" instead of "immutable(int)" like I would 
expect. Is this a bug, or is that what is supposed to happen?


More information about the Digitalmars-d-learn mailing list