Merge pull request #3766 from BrzVlad/feature-default-conc
[mono.git] / mcs / errors / cs0724.cs
index ec9425ab46c661a96943f81027bffd619ed83ad7..a0d5c1467c28f1bc6d4c027c16c1e93bcc6ccf7a 100644 (file)
@@ -1,17 +1,23 @@
-// 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;
-               }                       
        }
 }