new inference: cleanup incorporation phase

This commit is contained in:
Anna Kozlova
2014-08-29 12:01:58 +04:00
parent 63d6c2cb67
commit 6e8d0a65f7
4 changed files with 34 additions and 33 deletions
@@ -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{}
}