[cominterop] Default to [in] parameter direction when not specified explicitly.
[mono-project.git] / mcs / errors / cs8201.cs
blob7a1141774fa42333a7a1167fd6ab7ceb6e31b3aa
1 // CS8201: Out variable and pattern variable declarations are not allowed within a query clause
2 // Line: 11
4 using System.Linq;
6 class Program
8 public static void Main ()
10 var a = "abcdef";
11 var res = from x in a from y in M (a, out var z) select x;
14 public static T M<T>(T x, out T z) => z = x;