Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b32f408767cf86efaa65eb02699fe00bd61d99a6
/
.
/
compiler
/
testData
/
codegen
/
box
/
defaultArguments
/
kt36853.kt
blob: 47cde6752e22ee3dd67a2d72df1ff90491c23b45 [
file
]
interface
IFoo
{
fun foo
():
String
}
tailrec fun tailrecDefault
(
fake
:
Int
,
x
:
IFoo
=
object
:
IFoo
{
override
fun foo
():
String
=
"OK"
}
):
String
{
return
if
(
fake
==
0
)
tailrecDefault
(
1
)
else
x
.
foo
()
}
fun box
():
String
=
tailrecDefault
(
0
)