[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / gtest-092.cs
blob1e83b5c1152df7593ed067ac94291dde2b9e1044
1 using System;
3 public class Element<T>
5 public readonly T Item;
7 public Element (T item)
9 this.Item = item;
12 public void GetItem (out T retval)
14 retval = Item;
17 public T GetItem (int a, ref T data)
19 return Item;
22 public void SetItem (T data)
23 { }
26 public class Foo<T>
28 Element<Node> element;
30 public Node Test ()
32 Node node = element.Item;
33 element.GetItem (out node);
34 element.SetItem (node);
35 return element.GetItem (3, ref node);
38 public class Node
43 class X
45 public static void Main ()
46 { }