generic throwable: detect generics through ancestors (IDEA-179958)

This commit is contained in:
Anna.Kozlova
2017-10-12 19:38:48 +02:00
parent dd845bfea7
commit 0056220d8b
3 changed files with 17 additions and 6 deletions
@@ -15,4 +15,10 @@ class C {
class LocalExn extends Exception {}
throw new RuntimeException() {};
}
{
class LocalGenerics<K> {
class Ex extends <error descr="Generic class may not extend 'java.lang.Throwable'">Exception</error> {}
}
}
}