Files
kotlin/compiler/testData/diagnostics/tests/functionLiterals/functionLiteralWithoutArgumentList.kt
2013-12-19 13:01:05 +04:00

8 lines
162 B
Kotlin

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