Files
mono/mcs/errors/cs1626.cs
T
Marek Safar 1333b0cb83 2004-12-17 Marek Safar <[email protected]>
* makefile: Removed LOCAL_MCS_FLAGS. Every test should
	have its own.

	* cs1621.cs, cs1014.cs, cs1615.cs, cs1609.cs, cs1627.cs,
	cs1599-2.cs, cs1620.cs, cs0686.cs, cs1534.cs, cs1007.cs,
	cs1626.cs, cs1599.cs, cs1670.cs, cs1646.cs, cs0683.cs,
	cs1638.cs, cs0103-2.cs: New error tests.

svn path=/trunk/mcs/; revision=37871
2004-12-17 11:09:56 +00:00

17 lines
255 B
C#

// cs01626.cs: Cannot yield a value in the body of a try block with a catch clause
// Line: 11
using System.Collections;
class C: IEnumerable
{
public IEnumerator GetEnumerator ()
{
try {
yield return this;
}
catch {
}
}
}