[Issue 11488] Disallow chaining of - operator

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Feb 1 07:57:29 PST 2015


https://issues.dlang.org/show_bug.cgi?id=11488

Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject.org

--- Comment #6 from Iain Buclaw <ibuclaw at gdcproject.org> ---
It looks like the grammar does allow this, but fails semantic because in the
following expression, -x is not an lvalue (probably an implementation detail
though).

-- -x;


More complex examples expose artificial variables in errors, so that is
definitely a bug.

--


More information about the Digitalmars-d-bugs mailing list