[Issue 4141] unary ++ (post increment) tries and fails to invoke opBinary

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 20 15:11:45 PST 2012


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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich at gmail.com
         Resolution|                            |FIXED


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-12-20 15:11:44 PST ---
Proper error message in 2.060:

test.d(11): Error: 'a += 1' is not a scalar, it is a A
test.d(11): Error: incompatible types for ((a) += (1)): 'A' and 'int'

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