Fixed KT-5443 J2K converter crashes when code contains catch with multiple exception types

#KT-5443 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-07-16 13:18:05 +04:00
parent 957ffb0313
commit b9bd5c8fb8
4 changed files with 61 additions and 10 deletions
@@ -0,0 +1,13 @@
//file
import java.io.IOException;
class A {
void foo() {
try {
bar()
}
catch(RuntimeException | IOException e) {
e.printStackTrace(); // print stack trace
}
}
}
@@ -0,0 +1,14 @@
import java.io.IOException
class A {
fun foo() {
try {
bar()
} catch (e: RuntimeException) {
e.printStackTrace() // print stack trace
} catch (e: IOException) {
e.printStackTrace()
}
}
}