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
[interp] run regression with all combinations of available optimizations (#17644)
[mono-project.git]
/
mcs
/
errors
/
cs1629-2.cs
blob
c26eafe5cdb1cd56eb560e3cb69b0ad3c989f745
1
// CS1629: 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
}