Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-086.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d830261179ba31fdc2c81b2e350fdbe9cc08c983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
public interface IFoo<S>
{ }

public class ArrayList<T>
{
        public virtual int InsertAll (IFoo<T> foo)
        {
                return 0;
        }

        public virtual int InsertAll<U> (IFoo<U> foo)
                where U : T
        {
                return 1;
        }

        public virtual int AddAll (IFoo<T> foo)
        {
                return InsertAll (foo);
        }
}

class X
{
	public static void Main ()
	{ }
}