Files
kotlin/compiler/testData/diagnostics/tests/functionLiterals/functionLiteralWithoutArgumentList.kt
2015-04-29 16:33:24 +02:00

8 lines
159 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 { _<()->Int>() }
}