testdata on partially raw types inferred by javac

This commit is contained in:
Anna.Kozlova
2016-05-09 18:49:24 +02:00
parent 9abe5476b6
commit 3dd26b5936
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import java.util.*;
import java.util.function.Function;
class Test {
public static <V, K> List<V> map(Collection<? extends K> iterable, Function<K, V> f) {
return null;
}
static class Pair<A, B> {
public Pair(A a, B b) {
}
}
void f(Set c){
List<Pair<String, Integer>> l = map(c, s -> new Pair(s, null));
}
}