Files
mono/mcs/errors/cs0252.cs
T
Marek Safar b5fa4f24a2 More new tests.
svn path=/trunk/mcs/; revision=97215
2008-03-03 19:21:17 +00:00

13 lines
294 B
C#

// CS0252: Possible unintended reference comparison. Consider casting the left side of the expression to `string' to compare the values
// Line: 10
// Compiler options: -warn:2 -warnaserror
using System;
class X {
static void Main() {
object a = "11";
Console.WriteLine(a == "11");
}
}