0ee977c42e
Proper support for JVM backend will be in the further commmits
11 lines
240 B
Kotlin
Vendored
11 lines
240 B
Kotlin
Vendored
// !LANGUAGE: +NewInference +FunctionInterfaceConversion +SamConversionPerArgument +SamConversionForKotlinFunctions
|
|
|
|
fun interface Foo {
|
|
fun invoke(): String
|
|
}
|
|
|
|
fun foo(f: Foo) = f.invoke()
|
|
|
|
fun box(): String {
|
|
return foo { "OK" }
|
|
} |