mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
14 lines
309 B
Kotlin
14 lines
309 B
Kotlin
// "Replace with safe (?.) call" "true"
|
|
// WITH_STDLIB
|
|
class Foo(val bar: Bar)
|
|
|
|
class Bar {
|
|
operator fun invoke() {}
|
|
}
|
|
|
|
fun test(foo: Foo?) {
|
|
foo // comment1
|
|
?. /* comment2 */ bar<caret>()
|
|
}
|
|
/* IGNORE_K2 */
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ReplaceInfixOrOperatorCallFix |