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

gtest-575.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ff1cc0f071be4b353d4a701fbfd38c1431c96536 (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
using System;

public class C<T1> where T1 : B<T1>, new ()
{
	public void Test ()
	{
		using (var a = new T1 ()) {
		}
	}
}

public class B<T2> : IDisposable
{
	void IDisposable.Dispose ()
	{
	}
}

public class Test : B<Test>
{
	public static void Main ()
	{
		new C<Test> ().Test ();
	}
}