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

test-debug-18.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 12b56a91ac45fd320136a01e2f630459d62f7d6f (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;

class C
{
	event Func<int> OutEvent;
	
	public static void Main ()
	{
	}
	
	public void M<U, V> (out U u, ref V v)
	{
		u = default (U);
	}
	
	void Test_1 ()
	{
		dynamic d = "a";
		string s = d + "b";
		return;
	}
	
	void Test_2 ()
	{
		dynamic d = "a";
		d.ToString ();
	}
	
	void Test_3 ()
	{
		dynamic u = "s";
		dynamic v = 5;
		dynamic c = new C ();
		c.M (out u, ref v);
	}
	
	void Test_4 ()
	{
		dynamic d = new C ();
		d.OutEvent += new Func<int> (() => 100);
	}
}