Updated with review feedback.
[mono.git] / mcs / errors / cs0157-4.cs
1 // CS0157: Control cannot leave the body of a finally clause
2 // Line: 11
3
4 class T {
5         static void Main ()
6         {
7                 while (true) {
8                         try {
9                                 System.Console.WriteLine ("trying");
10                         } finally {
11                                 goto foo;
12                         }
13                 foo :
14                         ;
15                 }
16         }
17 }