sq / JSIL

CIL to Javascript Compiler

Home Page:http://jsil.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GetType has the same problem as Bridge.

michaelcheers opened this issue · comments

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);
    }
}

Resolved via #982.