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

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

class Foo<T>
{
	public enum TestEnum { One, Two, Three }

	public TestEnum Test;

	public Foo (TestEnum test)
	{
		this.Test = test;
	}
}

class X
{
	public static void Main ()
	{
		Foo<int>.TestEnum e = Foo<int>.TestEnum.One;
		Console.WriteLine (e);

		Foo<int> foo = new Foo<int> (e);
		foo.Test = e;
	}
}