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

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