Type confusion regarding bignum/int
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3067
Reported by Martin Nilsson, IDA nilsson@pike.ida.liu.se
The following program
int main() {
Gmp.bignum = Gmp.bignum(1);
}
generates the following error
test.pike:3:Bad type in assignment.
test.pike:3:Expected: function(string, int : object(is 65605)) |
function(void | string | int | float | object : object(is 65605))
test.pike:3:Got : int
Pike: Failed to compile script:
Compilation failed.