JS: create new common directory for all generated tests, migrate several tests there
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// See KT-12254
|
||||
package foo
|
||||
|
||||
object A {
|
||||
var x: Int = throw RuntimeException("catch me")
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
try {
|
||||
return "fail: ${A.x.toString()}"
|
||||
}
|
||||
catch (e: RuntimeException) {
|
||||
return if (e.message == "catch me") "OK" else "fail: ${e.message}"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user