Merge pull request #5002 from BrzVlad/feature-sgen-modes
[mono.git] / mcs / errors / cs1624-3.cs
1 // CS1624: The body of `Program.Program()' cannot be an iterator block because `void' is not an iterator interface type
2 // Line: 6
3
4 class Program {
5         public Program() {
6                 yield break;
7         }
8         static public void Main() {
9         }
10 }