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

cs0665.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6b42211b8411a469d1e33af600d5f7ade2cc7f43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// cs0665.cs : Assignment in conditional expression is always constant; did you mean to use == instead of = ?
// Line: 10
// Compiler options: /warnaserror

class Test
{
	public void Foo (bool x)
	{
		bool b;
		if (b = true)
			System.Console.WriteLine (b);
	}
}