Replace with dot call quickfix: don't break formatting

#KT-25697 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-09-19 23:41:29 +09:00
committed by Dmitry Gridin
parent 7b56733bda
commit 7fcca71b4b
14 changed files with 130 additions and 2 deletions
@@ -0,0 +1,9 @@
// "Replace scope function with safe (?.) call" "true"
// WITH_RUNTIME
fun foo(a: String?) {
val b = a // comment1
// comment2
.let {
it<caret>.length
}
}
@@ -0,0 +1,9 @@
// "Replace scope function with safe (?.) call" "true"
// WITH_RUNTIME
fun foo(a: String?) {
val b = a // comment1
// comment2
?.let {
it.length
}
}
@@ -0,0 +1,8 @@
// "Replace scope function with safe (?.) call" "true"
// WITH_RUNTIME
fun foo(a: String?) {
val b = a
.let {
it<caret>.length
}
}
@@ -0,0 +1,8 @@
// "Replace scope function with safe (?.) call" "true"
// WITH_RUNTIME
fun foo(a: String?) {
val b = a
?.let {
it.length
}
}