mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-18 07:15:51 +07:00
IDEA-117780 Bad code is green: non-static class T cannot be referenced from a static context
This commit is contained in:
+5
@@ -10,4 +10,9 @@ class Test<T> {
|
||||
class B extends ArrayList<T> {
|
||||
void foo(T r){}
|
||||
}
|
||||
|
||||
static class C extends Test<<error descr="'Test.this' cannot be referenced from a static context">T</error>> {}
|
||||
static class D extends Test {
|
||||
<error descr="'Test.this' cannot be referenced from a static context">T</error> t;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user