Ignore self-references when reconstructing full names of nested classes

This commit is contained in:
Karel Hájek 2023-07-25 22:23:42 +02:00
parent f7e82bb6b2
commit 2bddda90ef

View File

@ -666,6 +666,10 @@ bool DotnetTypeReconstructor::reconstructNestedClasses()
if (enclosingItr == defClassTable.end())
continue;
// Ignore self-references
if (nestedItr == enclosingItr)
continue;
const std::string& namespac = nestedItr->second->getNameSpace();
if (namespac.empty())
{