java completion: don't insert method type arguments if they weren't inferred (IDEA-198368)

This commit is contained in:
peter
2019-01-10 15:22:42 +01:00
parent 283f630e70
commit 70a719c87a
4 changed files with 54 additions and 1 deletions
@@ -0,0 +1,18 @@
import java.util.Comparator;
class T {
{
new TreeSet<>(Ordering.natural()<caret>)
}
}
abstract class Ordering<T> implements Comparator<T> {
static <C extends Comparable> Ordering<C> natural() {
}
}
class TreeSet<E> {
TreeSet(Comparator<? super E> c) {
}
}