diff --git a/plugins/kotlin/code-insight/inspections-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/inspections/dfa/KtVariableDescriptor.kt b/plugins/kotlin/code-insight/inspections-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/inspections/dfa/KtVariableDescriptor.kt index 8461e6971172..d9992711ca93 100644 --- a/plugins/kotlin/code-insight/inspections-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/inspections/dfa/KtVariableDescriptor.kt +++ b/plugins/kotlin/code-insight/inspections-k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/inspections/dfa/KtVariableDescriptor.kt @@ -93,10 +93,7 @@ class KtVariableDescriptor( context(KtAnalysisSession) internal fun KtVariableLikeSymbol.variableDescriptor(): KtVariableDescriptor { - return KtVariableDescriptor( - this.getContainingModule(), this.createPointer(), this.returnType.toDfType(), - this.name.hashCode() - ) + return KtVariableDescriptor(useSiteModule, this.createPointer(), this.returnType.toDfType(), this.name.hashCode()) } private fun getVariablesChangedInNestedFunctions(parent: KtElement): Set =