mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
* 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
17 lines
255 B
C#
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 {
|
|
}
|
|
}
|
|
}
|