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

12 lines
239 B
Kotlin
Vendored

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