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

cs0253.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d70c9433b3ff1e09790857ded457d10b10d03ef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// cs0253.cs: Possible unintended reference comparison; to get a value comparison, cast the right hand side to type `string'
// Line: 10
// Compiler options: -warn:2 -warnaserror

using System;

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