2010-04-03 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0665.cs
blob64018635beaa9e86bbc07351dc542be112f617a3
1 // CS0665: Assignment in conditional expression is always constant. Did you mean to use `==' instead ?
2 // Line: 10
3 // Compiler options: /warnaserror
5 class Test
7 public void Foo (bool x)
9 bool b;
10 if (b = true)
11 System.Console.WriteLine (b);