Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
847a2ced07911ac5a943ed41390d054d0e81aa1f
/
.
/
compiler
/
testData
/
codegen
/
box
/
localClass
/
tryCatch.kt
blob: 3e07d638a82f382746087620b9653426f3030a3c [
file
]
// WITH_STDLIB
import
kotlin
.
test
.*
val sb
=
StringBuilder
()
private
fun foo
()
{
val
local
=
object
{
fun bar
()
{
try
{
}
catch
(
t
:
Throwable
)
{
sb
.
appendLine
(
t
)
}
}
}
local
.
bar
()
}
fun box
():
String
{
sb
.
append
(
"OK"
)
foo
()
return
sb
.
toString
()
}