[Issue 4734] immutable return type specifier without parantheses confuses the compiler

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 17 12:58:04 PDT 2013


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



--- Comment #7 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-09-17 12:58:02 PDT ---
(In reply to comment #6)
> (In reply to comment #5)
> > In any case, at minimum, the error message needs to be improved.
> 
> How about we implement these error messages like this:
> 
> Error: function test.Test.foo () const is not callable using (this)
> Error: function test.Test.foo () is not callable using const(this)
> 
> It's a little bit more informative than just a lone set of parens.

P.S. this is now:
Error: immutable method test.Test.foo is not callable using a mutable object

I'm thinking of closing this, since the diagnostic is informative enough to
know what went wrong.

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