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

cs0162-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 143374e06fbd8923a13005343b617f0b324fc1e2 (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 ((_enumFlags & Flags.Removed) != 0)
			Console.WriteLine ("error");
	}
}