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

class Error
{
	void Test ()
	{
		if (1 == 0) {
			try {
			} catch (System.Net.Sockets.SocketException sex) {
				int x = (int)sex.SocketErrorCode;
			}
		}
	}

}