FIR2IR: add more detailed exception message for KT-59766

This commit is contained in:
Mikhail Glukhikh
2023-07-06 13:33:26 +02:00
committed by Space Team
parent e722212502
commit ff490fb633
@@ -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 {