Files
mono/mcs/errors/cs0429.cs
T
Marek Safar f1f8ed486d 2004-12-06 Marek Safar <[email protected]>
Fixed #69195, #56821
	* ecore.cs (ResolveBoolean): Tiny refactoring.

	* expression.cs (Binary.DoResolve): Add warning 429 and skipping
	of right expression resolving when left is false constant and
	operator is LogicalAnd OR true constant and operator is LogicalOr.

	* statement.cs (ResolveUnreachable): Always reports warning.

svn path=/trunk/mcs/; revision=37173
2004-12-06 08:43:22 +00:00

13 lines
200 B
C#

// cs0429.cs: Unreachable expression code detected
// Line: 9
// Compiler options: -warn:4 -warnaserror
class Main
{
public void Method (int i)
{
if (false && i > 10)
return;
}
}