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

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

class Program
{
	public static int Test(Func<object> func)
	{
		func ();
		return 1;
	}

	public static int Test(Func<string> func)
	{
		func ();
		return 2;
	}
	
	public static int Main()
	{
		if (Test (() => (dynamic) 1) != 1)
			return 1;
		
		return 0;
	}
}