JVM IR: minor, improve exception message

This commit is contained in:
Alexander Udalov
2020-11-20 12:43:47 +01:00
parent b495fd542f
commit 362775b6b6
@@ -308,10 +308,10 @@ fun firstSuperMethodFromKotlin(
override: IrSimpleFunction, override: IrSimpleFunction,
implementation: IrSimpleFunction implementation: IrSimpleFunction
): IrSimpleFunctionSymbol { ): IrSimpleFunctionSymbol {
return override.overriddenSymbols.first { return override.overriddenSymbols.firstOrNull {
val owner = it.owner val owner = it.owner
owner.modality != Modality.ABSTRACT && owner.overrides(implementation) owner.modality != Modality.ABSTRACT && owner.overrides(implementation)
} } ?: error("No super method found for: ${override.render()}")
} }
// MethodSignatureMapper uses the corresponding property of a function to determine correct names // MethodSignatureMapper uses the corresponding property of a function to determine correct names