Compiler Warning (level 2) CS0440

Defining an alias named 'global' is ill-advised since 'global::' always references the global namespace and not an alias

This warning is issued when you define an alias named global.


The following example generates CS0440:

// CS0440.cs  
// Compile with: /W:1  
using global = MyClass;   // CS0440  
class MyClass  
    static void Main()  
        // Note how global refers to the global namespace  
        // even though it is redefined above.