Smart completion: one more working test and one more test to fix later

This commit is contained in:
Valentin Kipyatkov
2014-04-17 13:08:41 +04:00
parent 164fb84cbe
commit df299655a7
4 changed files with 32 additions and 2 deletions
@@ -0,0 +1,8 @@
fun foo(p: String.(Int) -> Unit){}
fun bar() {
foo(<caret>)
}
// EXIST: "{...}"
// EXIST: "{ Int -> ... }"
@@ -0,0 +1,11 @@
class C {
fun foo(s: String){}
}
fun foo(i: Int) {
val s = ""
C().foo(<caret>)
}
// ABSENT: i
// EXIST: s