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

           Summary: cannot access to @disable'd symbol from inner function
                    of another @disable'd
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-03-11 07:49:08 PDT ---
This code does not work.

@disable {
    void dep() { }
    void main() {
        dep();     // OK
        void inner() {
            dep(); // cannot call dep
        }
    }
}

When you replace '@disable' with 'deprecated', it works. ( even with -de )
I believe that both '@disable' and 'deprecated' should work in the same way.

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

Reply via email to