repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git]
/
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
}