Merge remote branch 'upstream/master'
[mono.git] / mcs / errors / cs1939.cs
1 // CS1930: A range variable `v' may not be passes as `ref' or `out' parameter
2 // Line: 19
3
4
5 using System;
6 using System.Linq;
7
8 class C
9 {
10         static int Foo (ref int value)
11         {
12                 return 1;
13         }
14         
15         public static void Main ()
16         {
17                 var e = from v in "a"
18                         let r = 1
19                         select Foo (ref v);
20         }
21 }