-// CS0742: A throw statement with no argument is only allowed in a catch clause nested inside of the innermost catch clause
+// CS0724: A throw statement with no arguments is not allowed inside of a finally clause nested inside of the innermost catch clause
// Line: 14
-using System;
-
-class Foo
+class C
{
- static void Main ()
+ static void Test()
{
- try {
- Console.WriteLine ("TEST");
+ try
+ {
+ throw new System.Exception();
+ }
+ catch
+ {
+ try
+ {
+ }
+ finally
+ {
+ throw;
+ }
}
- finally {
- throw;
- }
}
}