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

19 lines
316 B
C#

class List <t> {
public void foo <b> (List <t> x) {
System.Console.WriteLine ("{0} - {1}", typeof (t), x.GetType ());
}
}
class C {}
class D {}
class M {
public static void Main () {
List <D> x = new List<D> ();
x.foo <C> (x);
List <string> y = new List<string> ();
y.foo <C> (y);
}
}