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

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

interface IFoo
{
	MyList<U> Map<U> ();
}

class MyList<T>
{
	public void Hello (T t)
	{
		Console.WriteLine (t);
	}
}

class Foo : IFoo
{
	public MyList<T> Map<T> ()
	{
		return new MyList<T> ();
	}
}

class X
{
	public static void Main ()
	{
		Foo foo = new Foo ();
		MyList<int> list = foo.Map<int> ();
		list.Hello (9);
	}
}