summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0162-100.cs
blob: 313f0f6f8f637062265a92774bca2c9c8d411488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0162: Unreachable code detected
// Line: 18
// Compiler options: -warnaserror -warn:2

using System;

class X
{
	public static int Main ()
	{
		try {
			throw new ApplicationException ();
		} catch when (false) {
			return 0;
		}
	}
}