Merge boxWithStdlib testData into box, delete BoxWithStdlib test
This commit is contained in:
committed by
Alexander Udalov
parent
22bfc9786a
commit
06a67e6602
@@ -0,0 +1,17 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun box(): String {
|
||||
val obj = "" as java.lang.Object
|
||||
val e = IllegalArgumentException()
|
||||
fun m(): Nothing = throw e
|
||||
try {
|
||||
synchronized (m()) {
|
||||
throw AssertionError("Should not have reached this point")
|
||||
}
|
||||
}
|
||||
catch (caught: Throwable) {
|
||||
if (caught !== e) return "Fail: $caught"
|
||||
}
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user