Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
eeaff786f0d0a86b7b827da0028bbafe287d3c04
/
.
/
compiler
/
testData
/
codegen
/
box
/
escapeAnalysis
/
recursion.kt
blob: 57672298c796a820a3429bc2bc0dda8535e3b1a0 [
file
]
// WITH_STDLIB
import
kotlin
.
test
.*
class
A
{
var
f
:
A
?
=
null
}
fun foo
(
k
:
Int
,
a1
:
A
,
a2
:
A
):
A
{
val a3
=
A
()
if
(
k
==
0
)
return
a1
a3
.
f
=
a1
return
foo
(
k
-
1
,
a2
,
a3
)
}
fun box
():
String
{
foo
(
3
,
A
(),
A
()).
toString
()
return
"OK"
}