Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/elvisOnUnitInLet.kt
T

10 lines
173 B
Kotlin
Vendored

// FIR_IDENTICAL
fun foo(x: Int?) {
// Both parts of the Elvis should be alive, see KT-7936
x?.let {
smth()
}?: orElse()
}
fun smth() {}
fun orElse() {}