Xamarin Public Jenkins 6992685b86 Imported Upstream version 4.2.0.179
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
2015-11-10 14:54:39 +00:00

25 lines
274 B
C#

public interface IA
{
int Foo (int x = 0);
}
public class A : IA
{
public int Foo (int x)
{
return x;
}
private static int Bar<T> (T x) where T : A, IA
{
return x.Foo ();
}
public static int Main ()
{
if (Bar (new A ()) != 0)
return 1;
return 0;
}
}