Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs0162-21.cs
1 // CS0162: Unreachable code detected
2 // Line: 12
3 // Compiler options: -warnaserror -warn:2
4
5 using System;
6
7 class X
8 {
9     void Test ()
10     {
11         var x = true ? throw new NullReferenceException () : 1;
12         x = 2;
13         return;
14     }
15
16         static void Main () 
17         {
18         }
19 }