Files
kotlin-fork/compiler/testData/diagnostics/tests/builderInference/issues/kt64222.kt
T
Denis.Zharkov 8f9c09482b K2: Fix inference from assignment in PCLA
Before this, the order of the constraints being added was incorrect

^KT-64222 Fixed
2024-01-11 13:35:13 +00:00

18 lines
256 B
Kotlin
Vendored

// FIR_IDENTICAL
// ISSUE: KT-64222
interface A {
fun bar(): B<Int>
}
interface B<T>
fun <E> foo(block: B<E>.() -> Unit): B<E> = TODO()
class C : A {
private var value: B<Int>? = null
override fun bar() = foo {
value = this
}
}