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

public class MainClass
{
	public static void Main()
	{
		object d = (int?)null as int?;
	}
}