FIC: Support base version of conversions in JVM backend

Proper support for JVM backend will be in the further commmits
This commit is contained in:
Mikhail Zarechenskiy
2019-11-14 15:30:14 +03:00
parent c71c1d45c6
commit 0ee977c42e
6 changed files with 40 additions and 9 deletions
@@ -0,0 +1,11 @@
// !LANGUAGE: +NewInference +FunctionInterfaceConversion +SamConversionPerArgument +SamConversionForKotlinFunctions
fun interface Foo {
fun invoke(): String
}
fun foo(f: Foo) = f.invoke()
fun box(): String {
return foo { "OK" }
}