Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0162-3.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 08837798ad96fa5a7a7e072137dd5478915dc9ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// cs0162.cs: Unreachable code detected
// Line: 18
// Compiler options: -warnaserror -warn:2

using System;

class C {
	public enum Flags {
		Removed	= 0,
		Public	= 1
	}

	public Flags	_enumFlags;
		
	internal void Close()
	{	
		if ((Flags.Removed & _enumFlags) != (Flags.Removed & _enumFlags))
			Console.WriteLine ("error");
	}
}