14 lines
205 B
C#
Raw Normal View History

// CS0183: The given expression is always of the provided (`int?') type
// Line: 10
// Compiler options: -warnaserror -warn:1
class X
{
public void Foo ()
{
int? x = null;
if (x is int?) {
}
}
}