summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0157-4.cs
blob: 8f5f4e4af610e7e18799d4b045b250760f4eb7ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0157: Control cannot leave the body of a finally clause
// Line: 11

class T {
	static void Main ()
	{
		while (true) {
			try {
				System.Console.WriteLine ("trying");
			} finally {
				goto foo;
			}
		foo :
			;
		}
	}
}