Files
kotlin-fork/idea/testData/completion/smart/InElvisOperator2.kt
T
Valentin Kipyatkov 45f518a907 Smart completion after ?: works incorrectly
#KT-4926 Fixed
2014-05-07 22:50:22 +04:00

13 lines
251 B
Kotlin

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()" }