projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] C# 7 tuple (foundation only).
[mono.git]
/
mcs
/
errors
/
cs1629-3.cs
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
}