Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/inferenceInLinkedLambdas.kt
T

10 lines
229 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// !CHECK_TYPE
fun <T, R> foo(first: () -> T, second: (T) -> R): R = throw Exception()
fun test() {
val r = foo( { 4 }, { "${it + 1}" } )
r checkType { _<String>() }
}