Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
417088e15084daef5c72bc17ea66d3cf3c026c33
/
.
/
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
()
}