summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0665.cs
blob: 64018635beaa9e86bbc07351dc542be112f617a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0665: Assignment in conditional expression is always constant. Did you mean to use `==' instead ?
// Line: 10
// Compiler options: /warnaserror

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