2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0162-3.cs
blobc40e532de830b1d2a59da4e06fd400499116e96a
1 // cs0162.cs: Unreachable code detected
2 // Line: 18
3 // Compiler options: -warnaserror -warn:2
5 using System;
7 class C {
8 public enum Flags {
9 Removed = 0,
10 Public = 1
13 public Flags _enumFlags;
15 internal void Close()
17 if ((Flags.Removed & _enumFlags) != (Flags.Removed & _enumFlags))
18 Console.WriteLine ("error");
21 static void Main () {}