Bug 8919 – & for BigInt

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-10-31T03:58:00Z
Last change time
2013-02-01T00:17:11Z
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-10-31T03:58:57Z
import std.bigint; void main() { BigInt x = 10; BigInt y = 20; auto z = x & y; auto w = x & -y; } DMD 2.061alpha gives: test.d(5): Error: 'x' is not of integral type, it is a BigInt test.d(5): Error: 'y' is not of integral type, it is a BigInt test.d(6): Error: 'x' is not of integral type, it is a BigInt test.d(6): Error: 'y.opUnary()' is not of integral type, it is a BigInt
Comment #1 by clugdbug — 2013-02-01T00:17:11Z
*** This issue has been marked as a duplicate of issue 9061 ***