ca80ddb8ca
- For synthetic calls - For delegated constructor calls Also, I checked that for each toResolvedReference() (beside annotations) that converts candidate to the resolved reference, we run `runPCLARelatedTasksForCandidate()` in the same context. ^KT-65103 Fixed
17 lines
316 B
Kotlin
Vendored
17 lines
316 B
Kotlin
Vendored
// ISSUE: KT-65103
|
|
interface Consumer<in T>
|
|
|
|
public fun <T> buildConsumer(
|
|
block: (Consumer<T>) -> Unit
|
|
): T = "OK" as T
|
|
|
|
fun expectConsumerString(x: Consumer<String>) {}
|
|
|
|
fun box() =
|
|
try { // This try is essential
|
|
buildConsumer {
|
|
expectConsumerString(it)
|
|
}
|
|
} finally {
|
|
}
|