diff --git a/compiler/fir/native/src/org/jetbrains/kotlin/fir/backend/native/interop/FirObjCInterop.kt b/compiler/fir/native/src/org/jetbrains/kotlin/fir/backend/native/interop/FirObjCInterop.kt index b1b6326e528..9d482ef78a5 100644 --- a/compiler/fir/native/src/org/jetbrains/kotlin/fir/backend/native/interop/FirObjCInterop.kt +++ b/compiler/fir/native/src/org/jetbrains/kotlin/fir/backend/native/interop/FirObjCInterop.kt @@ -36,7 +36,7 @@ internal fun FirFunctionSymbol<*>.getObjCMethodInfoFromOverriddenFunctions(sessi // call of `processFunctionsByName()` is needed only for necessary side-effect before `getDirectOverriddenFunctions` call unsubstitutedScope.processFunctionsByName(symbol.name) {} unsubstitutedScope.getDirectOverriddenFunctions(symbol).firstNotNullOfOrNull { - assert(it != this) { "Function ${symbol.name}() is wrongly contained in its own getDirectOverriddenFunctions" } + require(it != this) { "Function ${symbol.name}() is wrongly contained in its own getDirectOverriddenFunctions" } it.getObjCMethodInfoFromOverriddenFunctions(session, scopeSession) } }