You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
27
mcs/tests/gtest-635.cs
Normal file
27
mcs/tests/gtest-635.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
public interface I<T>
|
||||
{
|
||||
T Clone();
|
||||
T1 Clone<T1>() where T1 : T;
|
||||
}
|
||||
|
||||
public interface I2 : I<I2>
|
||||
{
|
||||
}
|
||||
|
||||
public class TestClass : I2
|
||||
{
|
||||
public I2 Clone ()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public T1 Clone<T1> () where T1 : I2
|
||||
{
|
||||
return (T1) Clone();
|
||||
}
|
||||
|
||||
public static void Main ()
|
||||
{
|
||||
new TestClass ();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user