summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0458-7.cs
blob: 0935e36c2c7e07bce4c0edb93796f14a4adc4e39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// CS0472: The result of the expression is always `null' of type `MyEnum?'
// Line: 17
// Compiler options: -warnaserror -warn:2

using System;

enum MyEnum
{
	Value_1
}

class C
{
	public static void Main ()
	{
		var d = MyEnum.Value_1;
		var x = d & null;
	}
}