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

31 lines
299 B
C#

public class B<T>
{
public int Add (T obj)
{
return -1;
}
public void AddRange (object o)
{
T obj = (T) o;
Add (obj);
}
}
public interface IA
{
}
public class A : IA
{
}
public class Test
{
public static void Main ()
{
B<IA> aux = new B<IA> ();
aux.AddRange (new A ());
}
}