Compiler Error C2386
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2386.
symbol' : a symbol with this name already exists in the current scope
You tried to create a namespace alias, but the name you chose already exists.
The following sample generates C2386:
// C2386.cpp
namespace A {
int k;
}
int i;
namespace i = A; // C2386, i already exists
Show: