Files
kotlin-fork/idea/idea-completion/testData/keywords/LabeledLambdaThis.kt
T
2015-04-29 14:03:11 +03:00

15 lines
400 B
Kotlin
Vendored

fun foo(): String.() -> Unit {
return (label@ {
f {
<caret>
}
})
}
fun f(p: Any.() -> Unit){}
// INVOCATION_COUNT: 1
// EXIST: { lookupString: "this", itemText: "this", tailText: null, typeText: "Any", attributes: "bold" }
// ABSENT: "this@f"
// EXIST: { lookupString: "this@label", itemText: "this", tailText: "@label", typeText: "String", attributes: "bold" }