Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6330def4271b547b5c7db5f9759e387de2908e94
/
.
/
compiler
/
testData
/
codegen
/
box
/
funInterface
/
basicFunInterface.kt
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
()
}