21 lines
277 B
C#
21 lines
277 B
C#
|
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 ();
|
||
|
}
|
||
|
}
|
||
|
|