blob: f937fe65b9990f00b8c43fd60408097152fc13f7 [file] [log] [blame]
// !LANGUAGE: +FunctionalInterfaceConversion
fun interface Foo {
fun invoke(): String
}
class A : Foo {
override fun invoke(): String {
return "OK"
}
}
fun box(): String {
return A().invoke()
}