From 9af30f4ac7de19ccad0893e2d0e89cc66965310b Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Thu, 5 Dec 2019 18:01:18 +0300 Subject: [PATCH] EA-210362: fix invalid cast to KtFile in KtCodeFragment --- compiler/psi/src/org/jetbrains/kotlin/psi/KtCodeFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/psi/src/org/jetbrains/kotlin/psi/KtCodeFragment.kt b/compiler/psi/src/org/jetbrains/kotlin/psi/KtCodeFragment.kt index 6f8c19c9302..dc54dcb17fc 100644 --- a/compiler/psi/src/org/jetbrains/kotlin/psi/KtCodeFragment.kt +++ b/compiler/psi/src/org/jetbrains/kotlin/psi/KtCodeFragment.kt @@ -177,7 +177,7 @@ abstract class KtCodeFragment( fun getOriginalContext(): KtElement? { val contextElement = getContext() as? KtElement - val contextFile = contextElement?.containingKtFile + val contextFile = contextElement?.containingFile as? KtFile if (contextFile is KtCodeFragment) { return contextFile.getOriginalContext() }