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

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

abstract class A<T>
{
	public abstract void Foo<U> (U arg) where U : T;
}

class B : A<int>
{
	public override void Foo<U> (U arg)
	{
		ValueType vt = arg;
		Next (arg);
	}
	
	void Next<UU> (UU a) where UU : struct
	{
	}

	public static void Main ()
	{
		new B ().Foo (5);
	}
}