mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
testdata for IDEA-107440
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
class GoodCodeRed {
|
||||
static class ClassA {
|
||||
}
|
||||
|
||||
static class Pair<T, N> {
|
||||
}
|
||||
|
||||
<T extends ClassA, M extends T, N extends Number> void max(final M object, Pair<T, N> attribute, final N cnt) {
|
||||
}
|
||||
|
||||
<T extends ClassA, M extends T, N extends String> void max(final M object, Pair<T, N> attribute, final N str) {
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
max(new ClassA(), new Pair<ClassA, Integer>(), 1);
|
||||
}
|
||||
}
|
||||
@@ -307,6 +307,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
public void testCaptureWildcardsInTypeCasts() { doTest5(false); }
|
||||
public void testIDEA111085() { doTest5(false); }
|
||||
public void testIDEA109556() { doTest5(false); }
|
||||
public void testIDEA107440() { doTest5(false); }
|
||||
|
||||
public void testJavaUtilCollections_NoVerify() throws Exception {
|
||||
PsiClass collectionsClass = getJavaFacade().findClass("java.util.Collections", GlobalSearchScope.moduleWithLibrariesScope(getModule()));
|
||||
|
||||
Reference in New Issue
Block a user