2010-04-15 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs1631.cs
blob3256845ac714032e8db4ba58436dbf4d6ee00594
1 // cs1631.cs: Cannot yield a value in the body of a catch clause
2 // Line: 13
3 using System;
4 using System.Collections;
6 class X
8 public static IEnumerable Test (int a)
10 try {
12 } catch {
13 yield return 0;
17 static void Main ()
19 IEnumerable a = Test (3);
20 Console.WriteLine (a);