Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs1626.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 29f4a8ff22b9475e11aac75bcffdd5bf6851e5bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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 {
	   }
   }
}