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

gtest-026.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 039708680d487e8907b3748896fae720d4d0644d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Test access to class fields outside the generic type declaration.

class Foo<T>
{
	public T Hello;

	public Foo ()
	{ }
}

class X
{
	static void Main ()
	{
		Foo<int> foo = new Foo<int> ();
		foo.Hello = 9;
	}
}