Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/kt688.kt
T

15 lines
209 B
Kotlin
Vendored

// KT-668 Failed to resolve generic parameter
open class A()
open class B() : A() {
fun b(): B = B()
}
class C() {
fun <T> a(x: (T)->T, y: T): T {
return x(x(y))
}
val x: B = a({it.b()}, B())
}