Merge pull request #4845 from lambdageek/dev-coop-delegates
[mono.git] / mcs / errors / cs1623.cs
1 // CS1623: Iterators cannot have ref or out parameters
2 // Line: 8
3 using System;
4 using System.Collections;
5
6 class X
7 {
8         public static IEnumerable Test (ref int a)
9         {
10                 yield return 0;
11         }
12
13         static void Main ()
14         {
15                 int i = 3;
16                 IEnumerable a = Test (ref i);
17                 Console.WriteLine (a);
18         }
19 }