mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
13 lines
421 B
Kotlin
13 lines
421 B
Kotlin
// "Replace 'if' expression with safe access expression" "true"
|
|
// WITH_STDLIB
|
|
class Test {
|
|
var x: String? = ""
|
|
|
|
fun test() {
|
|
if (x != null) foo(<caret>x)
|
|
}
|
|
|
|
fun foo(s: String) = 1
|
|
}
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.SmartCastImpossibleInIfThenFactory$createQuickFix$1
|
|
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.codeInsight.IfThenToSafeAccessFix$asModCommandAction$1 |