summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-546.cs
blob: af6ac673c0e861834dbed11cdd424e5928890235 (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
using System;

class Factory
{
	public class S<G1, G2>
	{
	}
	
	public static S<F1, F2> Create<F1, F2> (F1 f1, F2 f2)
	{
		return null;
	}
}

class A
{
	static TR Test<T1, T2, TR>(T1 t1, T2 t2, Func<T1, T2, TR> f)
	{
		return f (t1, t2);
	}
	
	public static void Main ()
	{
		var r = Test ("a", "b", Factory.Create);
	}
}