Files
kotlin-fork/idea/testData/completion/smart/inElvisOperator/2.kt
T
2015-02-10 16:13:50 +03:00

13 lines
243 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" }