Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0252.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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");
	}
}