FIC: Make SAM conversions also for fun interfaces, add base test

This commit is contained in:
Mikhail Zarechenskiy
2019-11-13 13:44:23 +03:00
parent 193d807a1e
commit c71c1d45c6
8 changed files with 85 additions and 10 deletions
@@ -0,0 +1,12 @@
// !LANGUAGE: +NewInference +FunctionInterfaceConversion +SamConversionPerArgument +SamConversionForKotlinFunctions
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun interface Foo {
fun invoke()
}
fun foo(f: Foo) {}
fun test() {
foo {}
}