Completion of this@...: supported labeled function literals

This commit is contained in:
Valentin Kipyatkov
2014-12-26 14:09:04 +03:00
parent 05be100f53
commit 39a5486db8
4 changed files with 36 additions and 8 deletions
@@ -0,0 +1,14 @@
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" }