public interface Foo { T Test () where T : class; } class X { public static void Main () { } }