Files
mono/mcs/errors/cs0665.cs
T
Marek Safar 69285bc16a Error message updated.
svn path=/trunk/mcs/; revision=142906
2009-09-29 17:19:21 +00:00

15 lines
257 B
C#

// 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);
}
}