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

public enum E
{
}

class C
{
	public static void Main ()
	{
		E? e = null;
		var res = e - null;
	}
}