CosmosOS / IL2CPU

IL2CPU is a compiler for .NET IL code to compile to assembly language for direct booting.
BSD 3-Clause "New" or "Revised" License
279 stars 71 forks source link

Using System.Numerics.BigInteger breaks IL2CPU: Multiple Methods definitions. #206

Closed Guillermo-Santos closed 10 months ago

Guillermo-Santos commented 11 months ago

As the tittle says, i was trying to use a variable of type BigInteger:

var bi = new BigInteger(0);
Console.WriteLine($"BigInt: {bi}");

but got the next output on build: buildOut.txt

Guillermo-Santos commented 11 months ago

Side note, the error does not contain any mention of the need of a Plug.

Guillermo-Santos commented 11 months ago

This is similar to https://github.com/CosmosOS/Cosmos/issues/2619 (at least on output, do not really know about the cause)

Guillermo-Santos commented 11 months ago

After reading a little, I think it do have the same cause.

zarlo commented 10 months ago

this should be fix by #209 will need to check

Guillermo-Santos commented 10 months ago

Yes, it fixed it. Now an easy Fibonacci Series implementation is possible xd.