Merge pull request #4615 from alexanderkyte/string_error_handling
[mono.git] / mcs / errors / cs0162-20.cs
1 // CS0162: Unreachable code detected
2 // Line: 14
3 // Compiler options: -warnaserror
4
5 using System;
6
7 class X
8 {
9
10         public static void Main ()
11         {
12                 goto X;
13         A:
14                 bool b = false;
15                 if (b) {
16                         goto A;
17                 }
18         X:
19                 return;
20         }
21 }