Files
kotlin-fork/compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.kt
T
2020-01-30 10:27:01 +03:00

15 lines
313 B
Kotlin
Vendored

// !LANGUAGE: +NewInference +FunctionReferenceWithDefaultValueAsOtherType +FunctionalInterfaceConversion +SamConversionPerArgument +SamConversionForKotlinFunctions
fun interface IFoo {
fun foo(i: Int)
}
fun useFoo(foo: IFoo) {}
fun withVararg(vararg xs: Int) = 42
fun test() {
useFoo(::withVararg)
}