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

9 lines
239 B
Kotlin
Vendored

// !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 { <!UNRESOLVED_REFERENCE!>_<!><String>() }
}