Files
mono/mcs/errors/cs0252.cs
T
Marek Safar 6529b737cd new test + update
svn path=/trunk/mcs/; revision=47379
2005-07-18 10:26:01 +00:00

13 lines
282 B
C#

// cs0252.cs: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type `string'
// Line: 10
// Compiler options: -warn:2 -warnaserror
using System;
class X {
static void Main() {
object a = "11";
Console.WriteLine(a == "11");
}
}