[FIR] Fix ambiguity between Sequence.forEach and Iterable.forEach (with @HidesMembers) ^KT-50776 Fixed

This commit is contained in:
Ivan Kochurkin
2022-01-14 14:04:31 +03:00
committed by TeamCityServer
parent 4a200a2d7e
commit defb0cf611
13 changed files with 257 additions and 187 deletions
@@ -3,8 +3,6 @@ interface AutoCloseable {
fun close()
}
fun Throwable.addSuppressed(other: Throwable) {}
internal fun AutoCloseable?.closeFinally(cause: Throwable?) = when {
this == null -> {}
cause == null -> close()