Files
kotlin-fork/idea/idea-completion/testData/keywords/LabeledLambdaThis.kt
T
Valentin Kipyatkov bb808b5620 Created module idea-test-framework and moved classes needed for idea tests there
Moved tests for completion and their test data into module idea-completion
2015-04-14 18:53:01 +03:00

15 lines
400 B
Kotlin

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" }