Reflector Bug with generics

For this code:

class A<T>

{

    public A()

    {

        var b = new B();

    }

    class B : A<T>

    {

    }

}


Reflector generates this:

class A<T>

{

    public A()

    {

        var b = new B<T>();

    }

    class B : A<T>

    {

    }

}

which isn’t correct.

This entry was posted in 7671, 7806. Bookmark the permalink.

2 Responses to Reflector Bug with generics

  1. Dave Black says:

    Nice catch!

    Have you informed Lutz Roeder of the issue?

  2. I sent him an email yes.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>