Files
Vladimir Dolzhenko bab54c6d29 [kotlin] Improve test coverage of collected FUS quickfixes data
#KTIJ-389

GitOrigin-RevId: c8554b77a988a77484d1dada64353345b7a1fa35
2023-07-20 05:59:17 +00:00

21 lines
397 B
Kotlin

// "Replace with safe (?.) call" "true"
// DISABLE-ERRORS
fun test(foo: Foo?) {
baz {
bar("")
bar("")
foo<caret>.s
}
}
class Foo {
val s = ""
}
fun bar(s: String) {}
fun baz(f: () -> String) {
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ReplaceWithSafeCallFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ReplaceWithSafeCallFix