Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/invokeLambdaAsFunction.fir.kt
T
2020-02-04 15:00:12 +03:00

7 lines
123 B
Kotlin
Vendored

fun test1(i: Int) = { i ->
i
}(i)
fun test2() = <!INAPPLICABLE_CANDIDATE!>{ i -> i }()<!>
fun test3() = { i -> i }(1)