JVM IR: minor, improve exception message
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user