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

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

class A
{
	public int value;
	
	public A (int value)
	{
		this.value = value;
	}
}

class B
{
	static void Foo (int i, out A a)
	{
		a = new A (i);
	}

	public static int Main ()
	{
		dynamic d = 6;
		A a;
		Foo (d, out a);
		if (a.value != 6)
			return 1;
		
		return 0;
	}
}