mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
java highlighting tests moved to community
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
class C <T extends Exception> {
|
||||
void foo () throws T {}
|
||||
void bar () {
|
||||
<error descr="Unhandled exception: T">foo ();</error>
|
||||
}
|
||||
|
||||
<T extends Error> void goo() {
|
||||
try {
|
||||
int i = 12;
|
||||
} catch (<error descr="Cannot catch type parameters">T</error> ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//IDEADEV-4169: no problem here
|
||||
interface Blub {
|
||||
public <E extends Throwable> void Switch() throws E;
|
||||
}
|
||||
|
||||
class Blib implements Blub {
|
||||
public <E extends Throwable> void Switch() throws E {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user