In the F# Interactive, the following piece of code works:

> printfn "%A" (decimal 1I)
1M

However, in a compiled F# program, an error message appears:

The type 'Numerics.BigInteger' does not support a conversion to the type 'decimal'

What happened there? Is it because the different set of references (and versions of references) are used between F# versions? or the internal representations of the decimal are different across compiled and interpreted modes.

Edit
Report