summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0458-6.cs
blob: 34556b5b9f9e10553214f5d1c2198671ff3b8292 (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 `int?'
// Line: 15
// Compiler options: -warnaserror -warn:2

enum E
{
	V
}

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