Files
kotlin/compiler/testData/codegen/box/funInterface/basicFunInterfaceConversion.kt
2020-01-17 19:37:47 +03:00

11 lines
242 B
Kotlin
Vendored

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