Files
kotlin-fork/idea/testData/quickfix/addSemicolonBeforeLambdaExpression/basic.kt
T
Pavel Kirpichenkov 6c8e829f19 Update diagnostics for trailing lambdas, add quickfix
Alternative message for errors, caused by unexpected lambda expression arguments on a new line.
Both diagnostic are reported, if multiple lambda expressions were passed to the call.
For other errors trailing lambda diagnostic overrides the original one.

Quickfix for erroneous trailing lambdas on a new line after call.
Fix separates lambda expression from previous call with semicolon.
All trailing lambda arguments become standalone lambda expressions.
2019-09-25 15:38:17 +03:00

8 lines
105 B
Kotlin
Vendored

// "Terminate preceding call with semicolon" "true"
fun foo() {}
fun test() {
foo()
{<caret>}
}