digitalmars.D.bugs - [Issue 12693] New: multiple arithmetic assignment on same line fails
- via Digitalmars-d-bugs (28/28) May 02 2014 https://issues.dlang.org/show_bug.cgi?id=12693
https://issues.dlang.org/show_bug.cgi?id=12693 Issue ID: 12693 Summary: multiple arithmetic assignment on same line fails for short and byte Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: vlevenfeld gmail.com this test passes: uint x = 0; (x += 1) %= 2; assert (x == 1); ubyte y = 0; (y += 1) %= 2; assert (y == 0); // though I expected y == 1 y += 1; y %= 2; assert (y == 1); // this is correct using dmd from debian package dmd-bin v2.065.0-0 --
May 02 2014