testdata for IDEA-57293

(cherry picked from commit ece414558b7165e746bdf0a2d949979641ca33b4)
This commit is contained in:
Anna Kozlova
2014-10-17 18:00:26 +02:00
parent ba074ff60f
commit 403abc677a
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
class A<T,S> {}
class C {
void foo(A<?,?> x){
<error descr="Inferred type 'capture<?>' for type parameter 'S' is not within its bound; should extend 'capture<?>'">bar(x)</error>;
}
<T,S extends T> void bar(A<T,S> x){}
}

View File

@@ -394,6 +394,10 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
}
public void testIDEA57293() {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
}
public void testIDEA127767() {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
}