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

gtest-443.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 091b0f27780a8bd025a67623df702d65798230fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;

class C
{
	static void M<T> () where T : Exception, new ()
	{
		try {
			throw new T ();
		} catch (T ex) {
		}
	}

	public static int Main ()
	{
		M<ApplicationException> ();
		return 0;
	}
}