summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0253.cs
blob: 88882c5c454df1ca97dcc6e52a9517d2a19fbb80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// CS0253: Possible unintended reference comparison. Consider casting the right side expression to type `string' to get value comparison
// Line: 10
// Compiler options: -warn:2 -warnaserror

using System;

class X {
	static void Main() {
		object a = "11";
		Console.WriteLine("11" == a);
	}
}