www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10692] New: Deprecation isn't checked using alias this

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: nobody puremagic.com
        ReportedBy: Jesse.K.Phillips+D gmail.com


--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D gmail.com> 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: -------
Jul 21 2013