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

gtest-090.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 884f15b3ffc2342e3a358b87ea1a1c9aa0bc703a (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
using System;

public abstract class Foo<T>
{
	public virtual T InsertAll<U> (U u)
		where U : T
	{
		return u;
	}
}

public class Bar<T> : Foo<T>
{
	public override T InsertAll<U> (U u)
	{
		return u;
	}
}

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