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] Don't check for exception in native wrappers (#14184)
[mono-project.git]
/
mcs
/
errors
/
cs1629-3.cs
blob
f7ceed68c419f0b7964665556bba67e4abc5ee9e
1
// CS1629: Unsafe code may not appear in iterators
2
// Line: 17
3
// Compiler options: -unsafe
4
5
using
System
.
Collections
.
Generic
;
6
7
public unsafe class
TestClass
8
{
9
public struct
Foo
{
10
public bool
C
;
11
}
12
13
Foo
*
current
;
14
15
public
IEnumerable
<
Foo
>
EnumeratorCurrentEvents
()
16
{
17
yield return
*
current
;
18
}
19
}