mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
new inference: cleanup incorporation phase
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
class IdeaTest {
|
||||
class Test<K>{}
|
||||
|
||||
public void checkAnnotationsPresent() {
|
||||
Function<Test<? extends Annotation>, Annotation> mapper = this::getAnnotation;
|
||||
Function<Test<? extends Annotation>, ? extends Annotation> mapper1 = this::getAnnotation;
|
||||
}
|
||||
|
||||
public <A extends Annotation> A getAnnotation(Test<A> annotationClass) {
|
||||
return null;
|
||||
}
|
||||
|
||||
static class Annotation{}
|
||||
|
||||
|
||||
}
|
||||
+4
@@ -310,6 +310,10 @@ public class NewMethodRefHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testWildcardParametrization() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user