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

28 lines
293 B
C#

class Class1
{
public int Method1 () { return 1000; }
}
class Class2<T>
{
public T t;
}
class Class3 : Class2<dynamic>
{
public void Method2 ()
{
t.Method1 ();
}
}
class Program
{
public static void Main ()
{
var c3 = new Class3 ();
c3.t = new Class1 ();
c3.Method2 ();
}
}