summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/quickfix/replaceWithDotCall/safeCallChain3.kt
blob: a919b050138fb2f823c571aea8cb3398c2a60c5d (plain)
1
2
3
4
5
6
7
8
9
10
11
// "Replace with dot call" "true"
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
// Note: quick fix is available after the execution due to a separate warning (SAFE_CALL_WILL_CHANGE_NULLABILITY)
class Foo(val bar: Bar)
class Bar(val baz: Baz)
class Baz(val qux: Int)

fun test(foo: Foo) {
    foo?.bar?<caret>.baz?.qux
}
/* IGNORE_FIR */