svn path=/branches/mono-1-1-9/mcs/; revision=50439
[mono.git] / mcs / errors / cs0665-2.cs
1 // cs0665-2.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 bool Foo (bool x)
7         {
8                 bool b;
9                 return (b = true) ? true : b;
10         }
11 }
12