svn path=/branches/mono-1-1-9/mono/; revision=51217
[mono.git] / mcs / errors / cs0665.cs
1 // cs0665.cs : Assignment in conditional expression is always constant; did you mean to use == instead of = ?
2 // Compiler options: /warnaserror
3 // Line: 9
4 class Test
5 {
6         public void Foo (bool x)
7         {
8                 bool b;
9                 if (b = true)
10                         System.Console.WriteLine (b);
11         }
12 }
13