Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
417088e15084daef5c72bc17ea66d3cf3c026c33
/
.
/
compiler
/
testData
/
codegen
/
box
/
exceptions
/
catch7.kt
blob: 1ce69d6b955168489a830687c05e4768c3db6b79 [
file
]
// WITH_STDLIB
import
kotlin
.
test
.*
val sb
=
StringBuilder
()
fun box
():
String
{
try
{
foo
()
}
catch
(
e
:
Throwable
)
{
val message
=
e
.
message
if
(
message
!=
null
)
{
sb
.
append
(
message
)
}
}
return
sb
.
toString
()
}
fun foo
()
{
throw
Error
(
"OK"
)
}