Files
mono/mcs/errors/cs0019-34.cs
T
Marek Safar 56aa6ffb0f New test.
svn path=/trunk/mcs/; revision=101403
2008-04-22 09:45:35 +00:00

14 lines
242 B
C#

// CS0019: Operator `==' cannot be applied to operands of type `int' and `null'
// Line: 10
// Compiler options: -langversion:ISO-1
class C
{
static int Foo { get { return 3; } set {} }
static void Main ()
{
if (Foo == null) {}
}
}