[Issue 12676] alias parameter attempts to interpret symbol
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Apr 29 13:06:40 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12676
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
Sorry, the example is a bit wrong. Fixed:
-----
template TemplAlias1(
alias x = C // default
) { }
template TemplAlias2(
alias x : C // specialization
) { }
template TemplAlias3(
alias x : C = C // default = C, specializes to C
) { }
void main()
{
alias a = TemplAlias1!();
alias b = TemplAlias2!(C);
alias c = TemplAlias3!();
}
-----
--
More information about the Digitalmars-d-bugs
mailing list