16 lines
218 B
C#
Raw Normal View History

// CS0472: The result of comparing value type `E' with null is always `false'
// Line: 14
// Compiler options: -warnaserror
enum E
{
}
class X
{
public static void Main ()
{
E u = 0;
var b = u == (E?)null;
}
}