import std.bigint: BigInt; void main() { auto p = new BigInt[1]; p[0] = BigInt(1); // OK p[0] = 1; // OK p ~= BigInt(1); // OK p ~= 1; // Error } DMD 2.063beta: test.d(7): Error: cannot append type int to type BigInt[]
> p[0] = 1; // OK This is assignment, so it works. > p ~= 1; // Error This would be implicit construction of a BigInt from an int. That makes this an enhancement request for implicit construction on append.
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18577 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB