Files
kotlin-fork/idea/testData/quickfix/smartCastImpossibleInIfThen/ifThenElse3.kt.after
T

13 lines
227 B
Plaintext
Vendored

// "Replace 'if' expression with elvis expression" "true"
// WITH_RUNTIME
class Test {
var x: String? = ""
fun test() {
val i = x?.let { foo(it) } ?: bar()
}
fun foo(s: String) = 1
fun bar() = 0
}