Files
kotlin-fork/idea/testData/quickfix/addSemicolonBeforeLambdaExpression/dotExpressionAndCallExpression.kt
T
Pavel Kirpichenkov f1934fa49d 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
2019-11-13 11:00:01 +03:00

10 lines
191 B
Kotlin
Vendored

// "Terminate preceding call with semicolon" "true"
fun doSomething() {}
fun Any.foo() {}
fun test() {
doSomething().foo()
// comment and formatting
{ doSomething()<caret> }()
}