Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
417088e15084daef5c72bc17ea66d3cf3c026c33
/
.
/
compiler
/
testData
/
codegen
/
box
/
try
/
try4.kt
blob: e0e7ee6c603ded602cd29acab2609357f5a64aca [
file
]
// WITH_STDLIB
import
kotlin
.
test
.*
val sb
=
StringBuilder
()
fun box
():
String
{
val x
=
try
{
sb
.
appendLine
(
"Try"
)
5
}
catch
(
e
:
Throwable
)
{
throw
e
}
sb
.
appendLine
(
x
)
assertEquals
(
"""
Try
5
"""
.
trimIndent
(),
sb
.
toString
())
return
"OK"
}