Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/nestedCalls/completeNestedForVariableAsFunctionCall.kt
T

18 lines
251 B
Kotlin
Vendored

// FIR_IDENTICAL
package j
interface MyFunc<T> {}
class A(val b: B) {
}
class B {
operator fun <T> invoke(f: (T) -> T): MyFunc<T> = throw Exception()
}
fun <R> id(r: R) = r
fun foo(a: A) {
val r : MyFunc<Int> = id (a.b { x -> x + 14 })
}