Files
kotlin-fork/compiler/testData/ir/irText/expressions/funInterface/basicFunInterfaceConversion.kt
T
2020-01-22 00:12:03 +03:00

9 lines
222 B
Kotlin
Vendored

// !LANGUAGE: +NewInference +FunctionalInterfaceConversion +SamConversionPerArgument +SamConversionForKotlinFunctions
fun interface Foo {
fun invoke(): String
}
fun foo(f: Foo) = f.invoke()
fun test() = foo { "OK" }