Files
kotlin-fork/compiler/testData/diagnostics/tests/funInterface/basicFunInterfaceConversion.kt
T
2020-01-17 19:36:01 +03:00

12 lines
237 B
Kotlin
Vendored

// !LANGUAGE: +NewInference +FunctionInterfaceConversion +SamConversionPerArgument +SamConversionForKotlinFunctions
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun interface Foo {
fun invoke()
}
fun foo(f: Foo) {}
fun test() {
foo {}
}