using System; class C { static void M () where T : Exception, new () { try { throw new T (); } catch (T ex) { } } public static int Main () { M (); return 0; } }