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