mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
13 lines
217 B
Kotlin
Vendored
13 lines
217 B
Kotlin
Vendored
interface I<T> {
|
|
fun foo(t: T): (item: T) -> Unit{}
|
|
}
|
|
|
|
fun f(i: I<String>) {
|
|
val v = i.foo()
|
|
v(<caret>)
|
|
}
|
|
|
|
/*
|
|
Text: (<highlight>item: String</highlight>), Disabled: false, Strikeout: false, Green: true
|
|
*/
|