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
Remove debugging code from generated code
[mono-project.git]
/
mcs
/
errors
/
cs1623.cs
blob
5f188543c99d7700d9f6c5a86bca512fc46ac06a
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
}