[Issue 7846] New: Forward referenced storage class is not applied in certain cases
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 6 02:25:28 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7846
Summary: Forward referenced storage class is not applied in
certain cases
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2012-04-06 02:26:03 PDT ---
static assert(is(typeof(x)==const(int))); // pass
static assert(!is(typeof({x=2;}))); // pass
pragma(msg, typeof(x)); // "int"
pragma(msg, is(typeof({x=2;}))); // "true"
const int x;
pragma(msg, typeof(x)); // "const(int)"
pragma(msg, is(typeof({x=2;}))); // "false"
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list