testdata for IDEA-57322

This commit is contained in:
Anna Kozlova
2015-05-21 10:00:34 +02:00
parent 97d8c99958
commit eb0904cfd9
2 changed files with 11 additions and 0 deletions
@@ -0,0 +1,7 @@
class A<K> {
<S, T extends A<S>> void foo(A<? extends T> x){}
void bar(A<A<?>> x){
<error descr="Inferred type 'A<?>' for type parameter 'T' is not within its bound; should extend 'A<java.lang.Object>'">foo(x)</error>;
}
}
@@ -833,4 +833,8 @@ public class GenericsHighlighting8Test extends LightDaemonAnalyzerTestCase {
public void testIDEA57314() throws Exception {
doTest();
}
public void testIDEA57322() throws Exception {
doTest();
}
}