mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
method references: don't infer Object when no constraint exist for 'raw' reference (IDEA-171922)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
|
||||
|
||||
class Foo<T extends Comparable<T>> {
|
||||
|
||||
public Foo(final Foo<T> tuple) { }
|
||||
|
||||
{
|
||||
List<Foo<T>> l = bar(Foo::new);
|
||||
}
|
||||
|
||||
public<U> List<U> bar(Function<Foo<T>, U> mapper) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user