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

           Summary: @property doesn't need return type
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: simend...@gmail.com


--- Comment #0 from simendsjo <simend...@gmail.com> 2011-08-08 03:23:22 PDT ---
For @property, the return type is inferred even without the auto return type:

struct S {
    @property p() { // missing bool/auto
        return true;
    }
}
void main() {
    S s;
    static assert(is(typeof(s.p) == bool)); // ok
}

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

Reply via email to