Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
417088e15084daef5c72bc17ea66d3cf3c026c33
/
.
/
compiler
/
testData
/
codegen
/
box
/
escapeAnalysis
/
test13.kt
blob: 2bb7e956863b4285ed1aa5d94110d64a66509307 [
file
]
// WITH_STDLIB
import
kotlin
.
test
.*
class
A
{
var
f
:
A
?
=
null
}
fun foo
(
a
:
A
,
k
:
Int
):
A
{
return
if
(
k
==
0
)
a
else
foo
(
a
.
f
!!,
k
-
1
)
}
fun box
():
String
{
val a
=
A
()
val a2
=
A
()
a
.
f
=
a2
assertEquals
(
a2
,
foo
(
a
,
1
))
return
"OK"
}