Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/newLineLambda.txt
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

12 lines
518 B
Plaintext
Vendored

package
public fun f1(): (() -> kotlin.Unit) -> (() -> kotlin.Unit) -> kotlin.Unit
public fun noArgs(): kotlin.Unit
public fun oneLambdaArg(/*0*/ fn: () -> kotlin.Unit): kotlin.Unit
public fun testLambdaArg(): kotlin.Unit
public fun testNoArgs(): kotlin.Unit
public fun testTwoLambdas(): kotlin.Unit
public fun testVararg(): kotlin.Unit
public fun twoLambdaArgs(/*0*/ f1: () -> kotlin.Unit, /*1*/ f2: () -> kotlin.Unit): kotlin.Unit
public fun varargFn(/*0*/ vararg args: kotlin.Int /*kotlin.IntArray*/): kotlin.Unit