summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0252.cs
blob: 364ae9fed094b933ff78bc50c079cb20521132f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// CS0252: Possible unintended reference comparison. Consider casting the left 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(a == "11");
	}
}