mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
8 lines
159 B
Kotlin
Vendored
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>() }
|
|
}
|