Merge pull request #1861 from saper/home-override
[mono-project.git] / mcs / tests / gtest-iter-26.cs
blob92a3bfec90eec585e12909739895de3c5c2df464
1 using System.Collections.Generic;
2 using System.Reflection;
3 using System.Runtime.CompilerServices;
5 namespace Test
7 public static class Program
9 public static int Main ()
11 var m = typeof (Program).GetMethod ("Test");
12 var attr = m.GetCustomAttribute<IteratorStateMachineAttribute> ();
13 if (attr != null)
14 return 1;
16 return 0;
19 public static IEnumerable<object> Test ()
21 yield return null;