mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
type parameter referenced from static context error (IDEA-104160)
(cherry picked from commit ac98afef2ab67f2b548e6723e63b3b9752bf82f5)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
import java.util.*;
|
||||
class Test<T> {
|
||||
public static void foo(<error descr="'Test.this' cannot be referenced from a static context">T</error> t) {}
|
||||
public void bar(T t) {}
|
||||
|
||||
static class A extends ArrayList<<error descr="'Test.this' cannot be referenced from a static context">T</error>> {
|
||||
static void boo(<error descr="'Test.this' cannot be referenced from a static context">T</error> t){}
|
||||
}
|
||||
|
||||
class B extends ArrayList<T> {
|
||||
void foo(T r){}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user