[Issue 13203] New: conflicting aliases allowed with static if
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jul 25 12:43:26 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13203
Issue ID: 13203
Summary: conflicting aliases allowed with static if
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: accepts-invalid
Severity: enhancement
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: mrmocool at gmx.de
template F(int v)
{
alias A = int;
static if (v)
alias A = uint;
}
alias B = F!1;
pragma(msg, B.A);
$ dmd -c test.d
int
--
More information about the Digitalmars-d-bugs
mailing list