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

gtest-069.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3305f2e940805c9e03098f2dc7423f9d5f237a93 (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
public interface IFoo
{
	int GetHashCode ();
}

public interface IFoo<T>
{
	int GetHashCode ();
}

public class Test<T>
{
	public int Foo (IFoo<T> foo)
	{
		return foo.GetHashCode ();
	}

	public int Foo (IFoo foo)
	{
		return foo.GetHashCode ();
	}
}

class X
{
	static void Main ()
	{ }
}