Bug 12816 – Increment (++) operator on a BigInt array item
Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2014-05-28T22:41:00Z
Last change time
2014-05-30T07:34:53Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2014-05-28T22:41:38Z
I think this used to work:
void main() {
import std.bigint: BigInt;
BigInt[] arr = [BigInt(1)];
arr[0]++;
}
dmd 2.066alpha gives:
temp.d(4,11): Error: var has no effect in expression (__pitmp1470)
Comment #1 by k.hara.pg — 2014-05-30T07:34:53Z
*** This issue has been marked as a duplicate of issue 5810 ***