Comment #0 by bearophile_hugs — 2013-01-31T02:15:10Z
import std.bigint: BigInt;
void main() {
BigInt a = 100;
uint b = 200;
a |= b;
BigInt c = 200;
a |= c;
a = a | c;
}
DMD 2.062alpha:
test.d(5): Error: 'a |= b' is not a scalar, it is a BigInt
test.d(5): Error: incompatible types for ((a) |= (b)): 'BigInt' and 'uint'
test.d(7): Error: 'a |= c' is not a scalar, it is a BigInt
test.d(7): Error: 'a' is not of integral type, it is a BigInt
test.d(7): Error: 'c' is not of integral type, it is a BigInt
test.d(8): Error: 'a' is not of integral type, it is a BigInt
test.d(8): Error: 'c' is not of integral type, it is a BigInt
Comment #1 by clugdbug — 2013-02-01T00:17:34Z
*** This issue has been marked as a duplicate of issue 9061 ***