Model: Include the global namespace when checking for ambiguous type references

This commit is contained in:
Katy Coe
2019-11-29 02:33:47 +01:00
parent 74f209bc2e
commit 0fe5fa53a6
5 changed files with 608 additions and 501 deletions

View File

@@ -12,6 +12,22 @@ using Some.Namespace.SameLeafName;
#pragma warning disable CS0169
// Type in global namespace should not overwrite selection of type with namespace
public class TestGlobal {}
namespace NotGlobalNamespace
{
public class TestGlobal {}
}
namespace NotGlobalUsingNamespace
{
public class TestUsingNonGlobalNamespaceType
{
public NotGlobalNamespace.TestGlobal Test() => default;
}
}
// Namespace nesting and using directive tests
namespace Some.Namespace
{