a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
18 lines
214 B
C#
18 lines
214 B
C#
class X<T, TBase> where T : TBase
|
|
{
|
|
static TBase tb;
|
|
|
|
public static void X2<T2> (T2 arg) where T2 : T
|
|
{
|
|
tb = arg;
|
|
tb = (T2)tb;
|
|
}
|
|
}
|
|
|
|
class Z
|
|
{
|
|
public static void Main ()
|
|
{
|
|
X<string, object>.X2 ("");
|
|
}
|
|
} |