[FIR] Remove redundant TODOs from FirSamResolver

This commit is contained in:
Dmitriy Novozhilov
2023-06-26 11:34:19 +03:00
committed by Space Team
parent 213b39f213
commit d3a098e7ef
2 changed files with 13 additions and 6 deletions
@@ -334,3 +334,10 @@ private inline fun <T, R> Iterable<T>.zipWithDefault(other: Iterable<R>, leftDef
fun <T, R> Iterable<T>.zipWithNulls(other: Iterable<R>): List<Pair<T?, R?>> {
return zipWithDefault(other, { null }, { null })
}
/**
* Use this function to indicate that some when branch is semantically unreachable
*/
fun unreachableBranch(argument: Any?): Nothing {
error("This argument should've been processed by previous when branches but it wasn't: $argument")
}