Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/newMethodRef/InexactMethodReferencePrimitiveBound.java
anna 73bf021d6c new inference: javac bug registration (JDK-8028503)
(cherry picked from commit 76727c790a9fcac64dce762d8d6fc674680d1905)
2013-11-25 16:47:49 +01:00

17 lines
302 B
Java

class Test22 {
static <U> Iterable<U> map(Mapper<String, U> mapper) {
return null;
}
static void test() {
Iterable<Integer> map = map(Test22 ::length);
}
public static <T> int length(String s) {
return 0;
}
}
interface Mapper<T, U> {
U map(T t);
}