projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2007-10-17 Jonathan Pobst <monkey@jpobst.com>
[mono.git]
/
mcs
/
tests
/
gtest-121.cs
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
}