[Issue 12213] New: DMD accepts invalid alias declaration
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 20 01:34:27 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12213
Summary: DMD accepts invalid alias declaration
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: brian-schott at cox.net
--- Comment #0 from brian-schott at cox.net 2014-02-20 01:34:24 PST ---
template X(string a, string b) {}
alias Y(string b) = X!("a", b);
No part of the language specification says that this is valid. DMD seems to be
accepting "alias" where "enum" is the correct keyword to use.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list