blob: ee3969a2ed586ecac794229a5c547d7b3d8c54f9 [file]
// IGNORE_BACKEND_FIR: JVM_IR
// KJS_WITH_FULL_RUNTIME
fun foo() : Int =
try {
2
}
finally {
"s"
}
fun bar(set : MutableSet<Int>) : Set<Int> =
try {
set
}
finally {
set.add(42)
}
fun box() : String {
if (foo() != 2) return "fail 1"
val s = bar(HashSet<Int>())
return if (s.contains(42)) "OK" else "fail 2"
}