Files
kotlin/compiler/testData/codegen/box/funInterface/basicFunInterface.kt
2020-02-04 16:14:29 +03:00

16 lines
221 B
Kotlin
Vendored

// !LANGUAGE: +FunctionalInterfaceConversion
fun interface Foo {
fun invoke(): String
}
class A : Foo {
override fun invoke(): String {
return "OK"
}
}
fun box(): String {
return A().invoke()
}