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

gtest-014.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e03d31a56da4c142786b8cfd01e0c74abd1cc4a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
public class Stack<S>
{
	public Stack (S s)
	{ }

	public void Push (S s)
	{ }
}

public class X
{
	public static void Main ()
	{
		Stack<int> s1 = new Stack<int> (3);
		s1.Push (4);

		Stack<string> s2 = new Stack<string> ("Hello");
		s2.Push ("Test");
	}
}