www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10760] New: compiler drops opDispatch if it contains an error(s)

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10760

           Summary: compiler drops opDispatch if it contains an error(s)
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: temtaime gmail.com



struct S {
    int opDispatch(string s)()  property {
        //notexistssymbol(); // when uncomment that dmd says: Error: no
property 'foo' for type 'S'
        return 0;
    }
}

void main() {
    S s;
    auto t = s.foo;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 05 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10760


Manu <turkeyman gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |turkeyman gmail.com



This had me scratching my head for a few hours today.
Please fix.

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