1 // Compiler options: -target:library 2 3 public interface InterfaceWithGenericMethod 4 { 5 void GenericMethod_1<T>() where T : struct, II; 6 void GenericMethod_2<T>() where T : class, II; 7 void GenericMethod_3<T>() where T : II, new (); 8 } 9 10 public interface II 11 { 12 } 13