sq / JSIL

CIL to Javascript Compiler
http://jsil.org/
Other
1.73k stars 241 forks source link

GetType has the same problem as Bridge. #981

Closed michaelcheers closed 8 years ago

michaelcheers commented 8 years ago

See #1301 in Bridge. Dot Net Fiddle This code gives an incorrect result:

using System;
/// <summary>
/// Creates a simple class
/// </summary>
public class App
{
    // Use the [Ready] attribute to automaically
    // run this method when the page is ready.
    //[Ready]
    public static void Main()
    {
        object v = (byte)3;
        Console.WriteLine(v.GetType().FullName);
        v = (uint)3;
        Console.WriteLine(v.GetType().FullName);
        v = (ushort)3;
        Console.WriteLine(v.GetType().FullName);
        v = (short)3;
        Console.WriteLine(v.GetType().FullName);
    }
}
iskiselev commented 8 years ago

Resolved via #982.