mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
21 lines
397 B
Kotlin
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 |