mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
14 lines
431 B
Kotlin
14 lines
431 B
Kotlin
// "Replace 'if' expression with elvis expression" "true"
|
|
class Test {
|
|
var x: String? = ""
|
|
|
|
fun test() {
|
|
val i = if (x != null) {
|
|
<caret>x.length
|
|
} else {
|
|
0
|
|
}
|
|
}
|
|
}
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.SmartCastImpossibleInIfThenFactory$createQuickFix$1
|
|
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.codeInsight.IfThenToElviFix$asModCommandAction$1 |