JS backend: fix KT-5603 (Multiple catch): add tests

This commit is contained in:
Michael Nedzelsky
2014-10-05 10:14:57 +04:00
parent 1ce3ddaa82
commit b15963d3fb
6 changed files with 168 additions and 0 deletions
@@ -0,0 +1,15 @@
package foo
fun box(): String {
var s: String = ""
try {
throw Exception()
} catch (e: Throwable) {
s = "Throwable"
}
assertEquals("Throwable", s)
return "OK"
}