mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-15 11:58:18 +07:00
Multi-catch support: more highlighting
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
abstract class C {
|
||||
private static class E extends Exception { }
|
||||
private static class E1 extends E { }
|
||||
private static class E2 extends E { }
|
||||
|
||||
abstract void f() throws E1, E2;
|
||||
|
||||
void m() {
|
||||
try { f(); } catch (E1 | E2 ignore) { }
|
||||
try { f(); } catch (<warning descr="Exception 'C.E1' is also caught by 'C.E'">E1</warning> | E ignore) { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user