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: 4e296420b0f125447c3d3e9cd3241c06c26077e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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");
	}
}