blob: b46eac0237fa23389e125ee21049e9cdf3ead42c [file]
// ISSUE: KT-72746
fun box(): String {
var test: Int? = null
return if (test != null) {
"Fail"
} else {
try {
test!!.toString()
} catch (_: NullPointerException) {
"OK"
}
}
}