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
19 lines
406 B
Kotlin
Vendored
19 lines
406 B
Kotlin
Vendored
// ISSUE: KT-65103
|
|
interface Consumer<in T>
|
|
|
|
public fun <T> buildConsumer(
|
|
b: Boolean,
|
|
block: (Consumer<T>) -> Unit
|
|
): T? = if (b) ("O" as T) else null
|
|
|
|
public fun <T> materialize(): T = "K" as T
|
|
|
|
fun expectConsumerString(x: Consumer<String>) {}
|
|
|
|
fun elvis(b: Boolean) =
|
|
buildConsumer(b) {
|
|
expectConsumerString(it)
|
|
} ?: materialize()
|
|
|
|
fun box(): String = elvis(true) + elvis(false)
|