[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / errors / cs1631.cs
blob0715ce8b750a9a796cadb34b53f815316694489d
1 // CS1631: 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);