Files
kotlin-fork/compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.fir.kt.txt
T
Vladimir Sukharev ff174dbad9 [FIR2IR] Provide reflection target to adapted function references
^KT-60259 Fixed

Merge-request: KT-MR-11182
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-07-26 19:08:11 +00:00

23 lines
280 B
Kotlin
Vendored

fun interface IFoo {
abstract fun foo(i: Int)
}
fun useFoo(foo: IFoo) {
}
fun withVararg(vararg xs: Int): Int {
return 42
}
fun test() {
useFoo(foo = { // BLOCK
local fun withVararg(p0: Int) {
withVararg(xs = [p0])
}
::withVararg
} /*-> IFoo */)
}