Files
kotlin-fork/idea/idea-completion/testData/smart/inElvisOperator/2.kt
T
Valentin Kipyatkov bb808b5620 Created module idea-test-framework and moved classes needed for idea tests there
Moved tests for completion and their test data into module idea-completion
2015-04-14 18:53:01 +03:00

13 lines
243 B
Kotlin
Vendored

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