Merge pull request #487 from mayerwin/patch-1
[mono.git] / mcs / tests / gtest-254.cs
1 using System;
2
3 public class HashedLinkedList<T>
4 {
5         public int? Offset;
6
7         public static HashedLinkedList<T> GetList ()
8         {
9                 return new HashedLinkedList<T> ();
10         }
11
12         public static void Test (int added)
13         {
14                 GetList ().Offset += added;
15         }
16
17         public void Test (HashedLinkedList<T> view)
18         {
19                 view.Offset--;
20         }
21 }
22
23 class X
24 {
25         public static void Main ()
26         {
27                 HashedLinkedList<int>.Test (5);
28                 HashedLinkedList<long> list = new HashedLinkedList<long> ();
29                 list.Test (list);
30         }
31 }