Remove unnecessary unchecked cast

This commit is contained in:
Chris Smowton
2022-11-15 18:36:03 +00:00
parent f9fc08bd40
commit 3dc9c2e57b

View File

@@ -4564,8 +4564,7 @@ open class KotlinFileExtractor(
extractExpressionExpr(loop.condition, callable, id, 0, id)
}
@Suppress("UNCHECKED_CAST")
private fun <T : DbExpr> exprIdOrFresh(id: Label<out DbExpr>?) = id as? Label<T> ?: tw.getFreshIdLabel()
private fun <T : DbExpr> exprIdOrFresh(id: Label<out DbExpr>?) = id?.cast<T>() ?: tw.getFreshIdLabel()
private fun toUnbound(t: IrType) =
when(t) {