[K/N] Don't use assert in production code

This commit is contained in:
Vladimir Sukharev
2024-01-15 11:37:40 +01:00
committed by Space Team
parent 07938205bc
commit 38ea2ce973
@@ -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)
}
}