[Issue 9635] Improved error message for failed access of array field properties from static method

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 4 20:32:15 PST 2013


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |andrej.mitrovich at gmail.com
         AssignedTo|nobody at puremagic.com        |andrej.mitrovich at gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-03-04 20:32:13 PST ---
(In reply to comment #0)
> Is it possible to generate an error message like this, that suggests how to fix
> the problem?
> 
> temp.d(4): Error: need 'this' for 'i' of type int[1u]. Use typeof(i[0]).max
> instead

This could end up being arbitrarily hard to implement, so I'll just improve the
wording of the error message like I've mentioned.

https://github.com/D-Programming-Language/dmd/pull/1721

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