IDEA-94934 (test case for already fixed issue)

This commit is contained in:
Roman Shevchenko
2012-11-23 20:53:34 +01:00
parent a34fe3f0e6
commit f5546bc0c0
@@ -210,4 +210,22 @@ class C {
<error descr="Unhandled exceptions: C.E1, C.E2">throw e;</error>
}
}
void m13() throws E1 {
try {
try {
if (true)
throw new E1();
else if (false)
throw new E2();
}
catch (E1 | E2 e) {
e = new E();
throw e;
}
}
catch (E2 e) {
throw new RuntimeException(e);
}
}
}