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

gtest-085.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 76f0767a124377430b109c5672badbb346d37797 (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
28
29
30
31
32
using System;

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 int Main ()
	{
		ArrayList<int> list = new ArrayList<int> ();
		return list.AddAll (null);
	}
}