18 lines
207 B
C#
Raw Normal View History

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;
}
}