mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
method refs: do not loose information about type arguments given by ReferenceType in receiver
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Box<T>
|
||||
{
|
||||
public T getValue()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
void f(Stream<Box<String>> stream) {
|
||||
List<String> l3 = stream
|
||||
.map(Box<String>::getValue)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user