Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b32f408767cf86efaa65eb02699fe00bd61d99a6
/
.
/
compiler
/
testData
/
codegen
/
box
/
defaultArguments
/
captureInTailrec.kt
blob: 648a29536a7d5cf387bce96d11642ba6e5a0bdcb [
file
]
// KT-46225
class
C
fun box
():
String
=
C
().
foo
(
"O"
)
tailrec fun C
.
foo
(
x
:
String
,
f
:
(
String
)
->
String
=
{
bar
(
it
)
}):
String
=
if
(
x
.
length
<
2
)
foo
(
f
(
x
))
else
x
fun C
.
bar
(
s
:
String
):
String
=
s
+
"K"