[Issue 10511] Unhelpful error messages with a const opDispatch

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 30 08:56:07 PDT 2013


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



--- Comment #2 from bearophile_hugs at eml.cc 2013-06-30 08:56:06 PDT ---
(In reply to comment #1)
> Why static const methods are allowed in the very first place? Is there a legit
> use case?

I think it's a regression (maybe already reported in Bugzillza), because this
code:

const void foo() {}
void main() {}


Used to give:

Error: function test.foo without 'this' cannot be const/immutable

-- 
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