Sign in
◑
Theme
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
HEAD
/
.
/
compiler
/
testData
/
codegen
/
box
/
funInterface
/
kt64587.kt
blob: c1b7ab314b8e54131a2d2c89a76cea50a688489f [
file
]
interface
Parent
{
fun visit
(
visitor
:
(
Parent
)
->
Unit
)
{
visitor
.
invoke
(
this
)
}
}
fun
interface
Child
:
Parent
{
fun intValue
():
Int
}
fun box
():
String
{
var
result
=
"fail"
Child
{
42
}.
visit
{
result
=
"OK"
}
return
result
}