mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
testdata for IDEA-77128
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import java.util.*;
|
||||
class A {
|
||||
public static void main(String[] args) {
|
||||
List<String> strings = new ArrayList<>();
|
||||
|
||||
List<? super Integer> list = new ArrayList<>();
|
||||
list.addAll<error descr="'addAll(java.util.Collection<? extends capture<? super java.lang.Integer>>)' in 'java.util.List' cannot be applied to '(java.util.List<java.lang.String>)'">(strings)</error>;
|
||||
|
||||
System.out.println(list.toString());
|
||||
}
|
||||
}
|
||||
@@ -269,6 +269,10 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest5(false);
|
||||
}
|
||||
|
||||
public void testIDEA77128() throws Exception {
|
||||
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
|
||||
}
|
||||
|
||||
public void testDisableCastingToNestedWildcards() throws Exception {
|
||||
doTest5(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user