http://d.puremagic.com/issues/show_bug.cgi?id=7482

           Summary: deprecation isn't checked inside forward referenced
                    is(typeof())
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@yahoo.com.au> 2012-02-10 22:12:36 PST ---
static if (is(typeof(Z))) {} else {static assert(0, "first time");}

deprecated int Z;

static if (is(typeof(Z))) {} else {static assert(0, "second time lucky");}
----------
crash.d(5): Error: static assert  "second time lucky"
It should assert the first time.

This is another gagging bug, related to bug 4269, but the problem isn't an
invalid type. Here, the first typeof doesn't check deprecation.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to