Bug 6163 – std.bigint: x.opBinary(y) is not an lvalue

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-06-15T17:39:00Z
Last change time
2011-06-15T23:30:06Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2011-06-15T17:39:30Z
DMD 2.053: import std.bigint; void main() { BigInt x = 20; BigInt y = 1; bool result = (x == (x * y)); } It gives: temp.d(5): Error: x.opBinary(y) is not an lvalue
Comment #1 by yebblies — 2011-06-15T23:30:06Z
*** This issue has been marked as a duplicate of issue 3659 ***