21 lines
277 B
C#
Raw Normal View History

class MainClass
{
class Gen<T>
{
public void Test ()
{ }
}
class Der : Gen<int>
{
}
public static void Main ()
{
object o = new Der ();
Gen<int> b = (Gen<int>) o;
b.Test ();
}
}