new inference: cls copy replacement

This commit is contained in:
Anna Kozlova
2014-02-17 18:10:36 +01:00
parent 4ba1e5f0ab
commit 15740a3cff
3 changed files with 30 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
import java.util.Map;
import java.util.stream.Collector;
public class Bug {
{
Collector<String, ?, Map<String, Long>> stringTreeMapCollector = groupingBy(counting());
}
public static <T, D, M extends Map<String, D>> Collector<T, ?, M> groupingBy(Collector<? super T, ?, Long> downstream) {
return null;
}
public static <Tc> Collector<Tc, ?, Long> counting() {
return null;
}
}