Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/funInterface/basicFunInterface.kt
T
2020-01-17 19:36:00 +03:00

16 lines
219 B
Kotlin
Vendored

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