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

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

public class X
{
	public readonly int Data;

        public X testme (out int x)
	{
                x = 1;
		return this;
        }

        public X ()
	{
                int x, y;

                y = this.testme (out x).Data;
                Console.WriteLine("X is {0}", x);
        }

        public static void Main ()
	{
                X x = new X ();
        }
}