Amend "Terminate preceding call with semicolon" quickfix
Quickfix wasn't aware of cases, when expression to be fixed is a part of parent call expression or dot-qualified expression. Incorrect position for extracting trailing lambdas led to broken formatting. #KT-34694 Fixed
This commit is contained in:
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// "Terminate preceding call with semicolon" "true"
|
||||
|
||||
fun doSomething() {}
|
||||
fun Any.foo() {}
|
||||
|
||||
fun test() {
|
||||
doSomething().foo()
|
||||
// comment and formatting
|
||||
{ doSomething()<caret> }()
|
||||
}
|
||||
Reference in New Issue
Block a user