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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 4 16:21:46 PDT 2012


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



--- Comment #6 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-04 16:15:50 PDT ---
(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.

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