projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] C#7 out variable declaration
[mono.git]
/
mcs
/
errors
/
cs8201.cs
1
// CS8201: Out variable and pattern variable declarations are not allowed within a query clause
2
// Line: 11
3
4
using System.Linq;
5
6
class Program
7
{
8
public static void Main ()
9
{
10
var a = "abcdef";
11
var res = from x in a from y in M (a, out var z) select x;
12
}
13
14
public static T M<T>(T x, out T z) => z = x;
15
}