Files
kotlin-fork/compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.kt.txt
T
2024-02-16 10:19:38 +00:00

23 lines
293 B
Kotlin
Vendored

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