Replace with dot call quickfix: don't break formatting
#KT-25697 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
7b56733bda
commit
7fcca71b4b
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user