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 ***