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

dtest-047.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 07cd35cc75e3c1f83666d272253652d1d002d21e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;

class C<T>
{
	public event Func<int, int> E = l => l + 9;
	
	public static int Test (int arg)
	{
		dynamic c = new C<T> ();
		return c.E (arg);
	}
}

public class Test
{
	public static int Main ()
	{
		if (C<int>.Test (5) != 14)
			return 1;
		
		return 0;
	}
}