Files
Mikhail Glukhikh d3a0a6cabe K2: discriminate candidates with adaptations in the first place in ConeOverloadConflictResolver
Before this commit, we discriminated particular candidates with callable
reference adaptations during resolution stages.
After disabling compatibility mode for new inference, it's not so,
but now we discriminate similar candidates in ConeOverloadConflictResolver;
more precisely, it's candidates with callable reference adaptation
in their postponed atoms.
This does not allow going up the tower,
but allows to select better candidate at similar tower level.

Related to KT-63558, KT-64307, KT-64308
2023-12-21 07:43:38 +00:00

16 lines
360 B
Kotlin
Vendored

// FIR_IDENTICAL
// FULL_JDK
// JVM_TARGET: 1.8
import java.util.concurrent.*
abstract class Logger(val service: ScheduledExecutorService) {
lateinit var future: ScheduledFuture<CompletableFuture<Void>>
abstract fun flush(): CompletableFuture<Void>
fun init() {
future = service.schedule(this::flush, 0L, TimeUnit.MILLISECONDS)
}
}