[Issue 12676] alias parameter attempts to interpret symbol
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Apr 29 13:23:56 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12676
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
Here:
-----
class C { }
class D : C { }
template TemplAlias(
alias x : D = C
) { }
-----
For some reason in the parser isDeclaration() returns false for ": Type", but
true for "= Type", and either a parseType() or a parseCondExp() is taken.Later
in in the semantic phase the alias class tries to evaluate D as an expression
rather than as a type so it fails.
--
More information about the Digitalmars-d-bugs
mailing list