FIR buildJavaUseSiteScope: fix visited symbols handling
This commit is contained in:
@@ -99,6 +99,7 @@ class JavaSymbolProvider(
|
|||||||
if (symbol is FirClassSymbol && visitedSymbols.add(symbol)) {
|
if (symbol is FirClassSymbol && visitedSymbols.add(symbol)) {
|
||||||
// We need JavaClassEnhancementScope here to have already enhanced signatures from supertypes
|
// We need JavaClassEnhancementScope here to have already enhanced signatures from supertypes
|
||||||
val scope = buildJavaEnhancementScope(useSiteSession, symbol, scopeSession, visitedSymbols)
|
val scope = buildJavaEnhancementScope(useSiteSession, symbol, scopeSession, visitedSymbols)
|
||||||
|
visitedSymbols.remove(symbol)
|
||||||
useSiteSuperType.wrapSubstitutionScopeIfNeed(useSiteSession, scope, symbol.fir, scopeSession)
|
useSiteSuperType.wrapSubstitutionScopeIfNeed(useSiteSession, scope, symbol.fir, scopeSession)
|
||||||
} else {
|
} else {
|
||||||
null
|
null
|
||||||
|
|||||||
Reference in New Issue
Block a user