Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-635.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8bb31b3773e788722d9a76e33af303b96bbc42ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 ();
	}
}