[Issue 14102] Bad 'is not an lvalue' diagnostic in chained -unary and --preincr expressions.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 16 13:44:45 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=14102
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |WORKSFORME
--- Comment #5 from RazvanN <razvan.nitu1305 at gmail.com> ---
I now get:
test.d(3): Error: `-x` is not an lvalue and cannot be modified
test.d(4): Error: `-(x -= 1)` is not an lvalue and cannot be modified
test.d(5): Error: `-(x -= 1 -= 1)` is not an lvalue and cannot be modified
test.d(6): Error: `-(x -= 1 -= 1 -= 1)` is not an lvalue and cannot be modified
Looks fine to me. Closing as WORKSFORME. @Iain, is this what you were
expecting?
--
More information about the Digitalmars-d-bugs
mailing list