[Issue 4855] When a class has private override member function, the function requires no return value type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 12 08:00:04 PDT 2010


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #1 from bearophile_hugs at eml.cc 2010-09-12 07:59:36 PDT ---
I agree this looks a bit strange, and it may even lead to a few bugs, but here
DMD is acting as designed, so it's not a true bug.

When you use enum, override and few other things, DMD performs type inference,
so the explicit return type is not necessary.

So I presume this bug may be closed.

(If you think this D characteristic is leads to many bugs then this bug report
may be kept open, despite the probability of seeing it fixed is low.)

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


More information about the Digitalmars-d-bugs mailing list