[Issue 17600] implicit float->int cast using += operator

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jul 6 05:36:00 PDT 2017


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

--- Comment #2 from Simon <simon.buerger at rwth-aachen.de> ---
I expected "x += y" to be equivalent to "x = x + y" (in which case an error is
generated). Sorry I didn't check the spec, everything is actually correct. (but
really surprising behavior IMHO). My bad.

--


More information about the Digitalmars-d-bugs mailing list