summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0472.cs
blob: 01d70056f28994c10712effd56f727c5dc7d4a0c (plain)
1
2
3
4
5
6
7
8
9
10
// CS0472: The result of comparing value type `int' with null is always `true'
// Line: 8
// Compiler options: -warnaserror -warn:2

public class X {
	public static bool Compute (int x)
	{
		return x != null;
	}
}