a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
26 lines
376 B
C#
26 lines
376 B
C#
// Compiler options: -r:gtest-465-lib.dll
|
|
|
|
public class DerivedClass : InterfaceWithGenericMethod
|
|
{
|
|
public void GenericMethod_1<T> () where T : struct, II
|
|
{
|
|
}
|
|
|
|
public void GenericMethod_2<T> () where T : class, II
|
|
{
|
|
}
|
|
|
|
public void GenericMethod_3<T> () where T : II, new ()
|
|
{
|
|
}
|
|
}
|
|
|
|
class Program
|
|
{
|
|
public static int Main ()
|
|
{
|
|
new DerivedClass ();
|
|
return 0;
|
|
}
|
|
}
|