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

32 lines
405 B
C#

using System;
public abstract class A<X>
{
public abstract T Test<T> (T t, X x);
}
public class B : A<char>
{
public override T Test<T> (T t, char x)
{
Console.WriteLine ("B");
return default (T);
}
}
public class C : B
{
public override T Test<T> (T t, char c)
{
base.Test ("a", 'a');
return default (T);
}
}
class X
{
public static void Main ()
{
new C ().Test<int> (1, '1');
}
}