Files
mono/mcs/errors/cs0665.cs
T
Marek Safar c54c8ad590 new tests + fixes
svn path=/trunk/mcs/; revision=50226
2005-09-19 13:09:04 +00:00

15 lines
264 B
C#

// cs0665.cs : Assignment in conditional expression is always constant; did you mean to use == instead of = ?
// Line: 10
// Compiler options: /warnaserror
class Test
{
public void Foo (bool x)
{
bool b;
if (b = true)
System.Console.WriteLine (b);
}
}