From ff490fb633ba71a1f704ef0980e087dfb36ef07d Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Thu, 6 Jul 2023 13:33:26 +0200 Subject: [PATCH] FIR2IR: add more detailed exception message for KT-59766 --- .../org/jetbrains/kotlin/fir/backend/Fir2IrClassifierStorage.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrClassifierStorage.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrClassifierStorage.kt index c1af1d9bd56..4159e52ff25 100644 --- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrClassifierStorage.kt +++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrClassifierStorage.kt @@ -677,7 +677,7 @@ class Fir2IrClassifierStorage( return getCachedIrTypeParameter(firTypeParameter, typeContext)?.symbol // We can try to use default cache because setter can use parent type parameters ?: typeParameterCache[firTypeParameter]?.symbol - ?: error("Cannot find cached type parameter by FIR symbol: ${firTypeParameterSymbol.name}") + ?: error("Cannot find cached type parameter by FIR symbol: ${firTypeParameterSymbol.name} of the owner: ${firTypeParameter.containingDeclarationSymbol}") } private val temporaryParent by lazy {