summaryrefslogtreecommitdiff
path: root/mcs/tests/test-anon-143.cs
blob: cf3dcaf93cc718f890f67b3af3552aeebc2e2ffa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;

public class TestC
{
	public static int Main ()
	{
		if (Test<string> () () != typeof (string)) return 1;
		if (Test<int> () () != typeof (int)) return 2;
		Console.WriteLine ("ok");
		return 0;
	}

	public static Func<Type> Test<T> ()
	{
		return () => typeof (T);
	}
}