[FE 1.0] Fix containing KtFile check in PSICallResolver.kt

This commit is contained in:
Victor Petukhov
2021-11-22 13:58:56 +03:00
parent d5a081bf03
commit 31668ed40d
@@ -409,7 +409,7 @@ class PSICallResolver(
}
override fun getNameForGivenImportAlias(name: Name): Name? =
context.call.callElement.containingKtFile.getNameForGivenImportAlias(name)
(context.call.callElement.containingFile as? KtFile)?.getNameForGivenImportAlias(name)
override fun interceptFunctionCandidates(
resolutionScope: ResolutionScope,