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
[build] Fix warning (#4177)
[mono-project.git]
/
mcs
/
tests
/
gtest-108.cs
blob
6465742175ce6f4f8f6e45d150ae587233420643
1
using
System
;
2
using
System
.
Collections
.
Generic
;
3
4
public class
Test
<
T
>
5
{
6
protected
T item
;
7
8
public
Test
(
T item
)
9
{
10
this
.
item
=
item
;
11
}
12
13
public
IEnumerator
<
T
>
GetEnumerator
()
14
{
15
yield return
item
;
16
}
17
}
18
19
class
X
20
{
21
public static void
Main
()
22
{
23
Test
<
int
>
test
=
new
Test
<
int
> (
3
);
24
foreach
(
int
a
in
test
)
25
;
26
}
27
}