Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b32f408767cf86efaa65eb02699fe00bd61d99a6
/
.
/
compiler
/
testData
/
codegen
/
box
/
funInterface
/
basicFunInterface.kt
blob: f937fe65b9990f00b8c43fd60408097152fc13f7 [
file
]
// !LANGUAGE: +FunctionalInterfaceConversion
fun
interface
Foo
{
fun invoke
():
String
}
class
A
:
Foo
{
override
fun invoke
():
String
{
return
"OK"
}
}
fun box
():
String
{
return
A
().
invoke
()
}