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
Warnings cleanup
[mcs.git]
/
tests
/
gtest-263.cs
blob
4911dcd8798a724b8d899c69e38c6580bcde75a9
1
using
System
;
2
using
System
.
Collections
.
Generic
;
3
4
class
Foo
<
S
>
5
{
6
public
ICloneable
Test
(
S t
)
7
{
8
return
(
ICloneable
)
t
;
9
}
10
}
11
12
public static class
ConvertHelper
13
{
14
public static
IEnumerator
<
T
>
Test
<
S
,
T
> (
S s
)
15
where T
:
S
16
{
17
yield return
(
T
)
s
;
18
}
19
20
static void
Main
()
21
{ }
22
}