Smart completion after ?: works incorrectly

#KT-4926 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-04-30 20:26:50 +04:00
parent 5e34791e68
commit 45f518a907
7 changed files with 73 additions and 1 deletions
@@ -0,0 +1,12 @@
fun foo1(): String? = null
fun foo2(): String? = null
fun foo3(): String = ""
fun bar() {
foo1() ?: <caret>
}
// EXIST: { itemText:"foo3()" }
// ABSENT: { itemText:"foo2()" }
// EXIST: { itemText:"!! foo2()" }
// EXIST: { itemText:"?: foo2()" }