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

           Summary: Deprecation isn't checked using alias this
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Jesse Phillips <[email protected]> 2013-07-21 
19:16:04 PDT ---
I would expect accessing members of B to fail when accessed with alias this:

    struct B {
        int i;
    }

    struct A {
        B b;
        deprecated alias b this;
    }

    void main() {
        A a;
        a.i = 5; // Deprecated
        assert(a.i == 5); // Deprecated
    }

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

Reply via email to