mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 04:40:28 +07:00
testdata on partially raw types inferred by javac
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user