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"
}