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

gtest-254.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0a78b9bc97d6770e0e7f4377514d8b985c8d4bb3 (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;

public class HashedLinkedList<T>
{
	public int? Offset;

	public static HashedLinkedList<T> GetList ()
	{
		return new HashedLinkedList<T> ();
	}

	public static void Test (int added)
	{
		GetList ().Offset += added;
	}

	public void Test (HashedLinkedList<T> view)
	{
		view.Offset--;
	}
}

class X
{
	static void Main ()
	{
		HashedLinkedList<int>.Test (5);
		HashedLinkedList<long> list = new HashedLinkedList<long> ();
		list.Test (list);
	}
}