[interp] Don't check for exception in native wrappers (#14184)
[mono-project.git] / mcs / errors / cs1622-3.cs
blobc53b064a74f5068a4f318230e5934a99061e4e03
1 // CS1622: Cannot return a value from iterators. Use the yield return statement to return a value, or yield break to end the iteration
2 // Line: 21
4 using System.Collections.Generic;
6 namespace McsDiff
8 class MyObj
12 class MainClass
14 protected static IEnumerable<MyObj> GetStuff ()
16 yield return null;
18 try {
20 catch {
21 return;