summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0019-26.cs
blob: dec3689cfed3b08b8c1064b8d7be3b3cd5ae1966 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// CS0019: Operator `&' cannot be applied to operands of type `C.Flags' and `int'
// Line: 16

using System;

class C
{
	enum Flags {
		Removed	= 0
	}
	
	public int	_enumFlags;
		
	internal void Close()
	{	
		if ((Flags.Removed & _enumFlags) == Flags.Removed)
			Console.WriteLine ("error");
	}
}