Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
847a2ced07911ac5a943ed41390d054d0e81aa1f
/
.
/
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"
}