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