Fixed KT-5020 Smart completion should work at the initializer of a val with no explicit type

#KT-5020 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-07-22 23:07:55 +04:00
parent ca25a3feaa
commit 91c983706a
5 changed files with 45 additions and 3 deletions
@@ -0,0 +1,6 @@
fun foo(p1: String, p2: Int) {
val v = <caret>"a"
}
// EXIST: p1
// ABSENT: p2
@@ -0,0 +1,6 @@
class A(s: String) {
val v = s.<caret>length()
}
// EXIST: size
// ABSENT: substring