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

gtest-055.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9e344904c30b4d8812b90a6b654a12fb266ab446 (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
// Using constructed types in a namespace alias.

namespace N1
{
	class A<T>
	{
		public class B { }

		public class C<U> { }
	}

	class C { }
}

namespace N2
{
	using Y = N1.A<int>;

	class X
	{
		public static void Main ()
		{
			Y y = new Y ();
			Y.B b = new Y.B ();
			Y.C<long> c = new Y.C<long> ();
		}
	}
}