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

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

class Test
{
	public bool Foo (bool x)
	{
		bool b;
		return (b = true) ? true : b;
	}
}