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

cs0440.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1a5e66a8da4e90e912244cb81b5386fd063af5b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// cs0440.cs: An alias named `global' will not be used when resolving 'global::'; the global namespace will be used instead
// Line: 5
// Compiler options: -warn:2 -warnaserror

using global = Foo;

namespace Foo {
	class A { }
}

class A { }

class X {
	static void Main ()
	{
		A a = new global::A ();
		System.Console.WriteLine (a.GetType ());
	}
}