Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA104160.java
T
anna 7cb3c66d87 type parameter referenced from static context error (IDEA-104160)
(cherry picked from commit ac98afef2ab67f2b548e6723e63b3b9752bf82f5)
2013-03-29 20:10:02 +01:00

14 lines
467 B
Java

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){}
}
}