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:
+11
@@ -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" }
|
||||
}
|
||||
Reference in New Issue
Block a user