Files
kotlin/compiler/testData/diagnostics/tests/functionLiterals/functionLiteralWithoutArgumentList.fir.kt

8 lines
186 B
Kotlin
Vendored

// !CHECK_TYPE
fun <T> id(t: T) = t
fun foo() {
val i = id { 22 } //type inference error: no information for parameter
i checkType { <!UNRESOLVED_REFERENCE!>_<!><()->Int>() }
}