repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[cominterop] Default to [in] parameter direction when not specified explicitly.
[mono-project.git]
/
mcs
/
errors
/
cs8201.cs
blob
7a1141774fa42333a7a1167fd6ab7ceb6e31b3aa
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
}