mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
new inference: avoid current type calculation during conflict resolution for target type detection (IDEA-121052)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import java.util.Comparator;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
class TypeDetectionTest {
|
||||
|
||||
void main(Stream<Integer> of) {
|
||||
of.sorted(comparing(n -> n.doubleValue()));
|
||||
}
|
||||
|
||||
public static <T, U extends Comparable<? super U>> Comparator<T> comparing(Function<? super T, ? extends U> keyExtractor){
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user