diff --git a/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/components/KtFirScopeProvider.kt b/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/components/KtFirScopeProvider.kt index e6ee32c27b5..136fc8d1abc 100644 --- a/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/components/KtFirScopeProvider.kt +++ b/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/components/KtFirScopeProvider.kt @@ -72,7 +72,7 @@ internal class KtFirScopeProvider( memberScopeCache.getOrPut(classSymbol) { val firScope = classSymbol.withFirForScope { fir -> - val firSession = fir.moduleData.session + val firSession = analysisSession.rootModuleSession fir.unsubstitutedScope( firSession, ScopeSession(),