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

enum E
{
	V
}

public class C
{
	public static void Main ()
	{
		E e = E.V;
		object o = e + null;
	}
}