import std.bigint;
void main() {
BigInt i;
auto foo = 1 % i;
}
test9.d(5): Error: incompatible types for ((1) % (i)): 'int' and 'BigInt'
Comment #1 by dsimcha — 2010-08-27T17:36:20Z
Add /, /= to the list, too.
Comment #2 by clugdbug — 2010-09-20T19:02:41Z
http://www.dsource.org/projects/phobos/changeset/2042
Fixes / and %.
int /= BigInt and int %= BigInt can't be done with the new operator overloading -- there's no such thing as opopAssignRight().
I have created bug 4903 for that.