Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0162-9.cs
1 // CS0162: Unreachable code detected
2 // Line: 9
3 // Compiler options: -warnaserror -warn:2
4
5 class Error
6 {
7         void Test ()
8         {
9                 if (1 == 0) {
10                         try {
11                         } catch (System.Net.Sockets.SocketException sex) {
12                                 int x = (int)sex.SocketErrorCode;
13                         }
14                 }
15         }
16
17 }