Fixed KT-6429 Wrong replacement range in smart completion in some particular case

#KT-6429 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-12-26 20:43:44 +03:00
parent 51678d0a45
commit 4b2ee7e645
4 changed files with 29 additions and 2 deletions
@@ -0,0 +1,11 @@
import java.util.ArrayList
class C(p: Int, p2: Int)
fun foo(p: Int){
val result = ArrayList<String>()
C(1, <caret>result.size())
}
// CHAR: '\t'
// ELEMENT: p
@@ -0,0 +1,11 @@
import java.util.ArrayList
class C(p: Int, p2: Int)
fun foo(p: Int){
val result = ArrayList<String>()
C(1, p)<caret>
}
// CHAR: '\t'
// ELEMENT: p