Files
kotlin-fork/compiler/testData/diagnostics/tests/expressionsInQaSelectorsReceiverConversion.fir.kt
T
Nikolay Lunyak 9b786d35f8 [FIR] Fix NO_RECEIVER_ALLOWED
If we do create an implicit invoke call, and
then put the receiver into the argument list,
we should mark it.
2024-01-24 12:49:56 +00:00

5 lines
87 B
Kotlin
Vendored

// ISSUE: KT-64891
fun test(f: (Int) -> Int) {
<!NO_RECEIVER_ALLOWED!>2.(f)()<!>
}