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-121.cs
blob
4357196690e591a1d8370fe0a01642ed39171eb7
1
public class
B
<
T
>
2
{
3
public int
Add
(
T obj
)
4
{
5
return
-
1
;
6
}
7
8
public void
AddRange
(
object
o
)
9
{
10
T obj
= (
T
)
o
;
11
Add
(
obj
);
12
}
13
}
14
15
public interface
IA
16
{
17
}
18
19
public class
A
:
IA
20
{
21
}
22
23
public class
Test
24
{
25
public static void
Main
()
26
{
27
B
<
IA
>
aux
=
new
B
<
IA
> ();
28
aux
.
AddRange
(
new
A
());
29
}
30
}