Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-383.cs
1 using System;
2
3 public class X
4 {
5         public readonly int Data;
6
7         public X testme (out int x)
8         {
9                 x = 1;
10                 return this;
11         }
12
13         public X ()
14         {
15                 int x, y;
16
17                 y = this.testme (out x).Data;
18                 Console.WriteLine("X is {0}", x);
19         }
20
21         public static void Main ()
22         {
23                 X x = new X ();
24         }
25 }