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
/
cs1629-2.cs
blob
99f273904579083ec94b22aac428462683532af8
1
// cs1629.cs: Unsafe code may not appear in iterators
2
// Line: 8
3
// Compiler options: -unsafe
4
5
using
System
.
Collections
;
6
7
class
X
{
8
static
IEnumerator
GetIt
()
9
{
10
unsafe
{
11
yield return
1
;
12
}
13
}
14
15
}