Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
67ac90ce0868ee0c9cd08d72460f16efecded549
/
.
/
compiler
/
testData
/
codegen
/
box
/
lateinit
/
localCapturedNotInitialized.kt
blob: b14e7ba71a51a3377bd8219698fa2e9a254907fe [
file
]
// WITH_STDLIB
import
kotlin
.
test
.*
val sb
=
StringBuilder
()
fun box
():
String
{
lateinit
var
s
:
String
fun foo
()
=
s
try
{
sb
.
appendLine
(
foo
())
}
catch
(
e
:
RuntimeException
)
{
sb
.
append
(
"OK"
)
return
sb
.
toString
()
}
return
"Fail"
}