sq / JSIL

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

Type.IsAssignableFrom() returns false for (delegate type) -> Delegate check #600

Open iskiselev opened 9 years ago

iskiselev commented 9 years ago

Here is test case:

using System;

public static class Program
{
    public static void Main(string[] args)
    {
        Console.WriteLine(typeof(Delegate).IsAssignableFrom(typeof(Action)) ? "true" : "false");
        Console.WriteLine(typeof(MulticastDelegate).IsAssignableFrom(typeof(Action)) ? "true" : "false");
        Console.WriteLine(typeof(Delegate).IsAssignableFrom(typeof(MulticastDelegate)) ? "true" : "false");
    }
}
iskiselev commented 9 years ago

Looks like is duplicate with #499, that should be fixed with PR #501 - but I don't understand what happened with it.

iskiselev commented 9 years ago

Works now. Test to be added.