CSharp · Console
public interface a
{
int x{get;set;}
}
public interface b
{
int x{get;set;}
}
public class c<T> where T: a, b
{
public int go(T t)
{
return t.x;
}
}