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

44 lines
416 B
C#

class ATop<T> : IA<T>
{
IA<T> list;
T[] IB<T>.ToArray (T[] t)
{
return null;
}
void IC.ToArray ()
{
}
public void Test ()
{
list = this;
list.ToArray (new T [0]);
list.ToArray ();
}
}
interface IA<U> : IC, IB<U>
{
}
interface IB<V> : IC
{
V[] ToArray (V[] array);
}
interface IC
{
void ToArray ();
}
class M
{
public static int Main ()
{
new ATop<short>().Test ();
return 0;
}
}