summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0472-7.cs
blob: 80be3d9ace71427a19fa2fe49e2b682a9697ad43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0472: The result of comparing value type `E' with null is always `false'
// Line: 14
// Compiler options: -warnaserror

enum E
{
}

class X
{
	public static void Main ()
	{
		E u = 0;
		var b = u == (E?)null;
	}
}