Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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 ("");
}
}