mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
12 lines
297 B
Kotlin
12 lines
297 B
Kotlin
// @ParameterName annotation takes precedence over name in function type parameter
|
|
fun <T> T.foo(): (notMe: @ParameterName("pickMe") T) -> Unit{}
|
|
|
|
fun f() {
|
|
val v = "a".foo()
|
|
v(<caret>)
|
|
}
|
|
|
|
/*
|
|
Text: (<highlight>pickMe: String</highlight>), Disabled: false, Strikeout: false, Green: true
|
|
*/
|