find occurrences: distinguish <> with different inference (IDEA-66176)

This commit is contained in:
anna
2011-03-11 11:44:42 +01:00
parent ef19124922
commit 1b09d55adc
5 changed files with 44 additions and 2 deletions
@@ -0,0 +1,9 @@
import java.util.*;
class Test {
void foo(final ArrayList<String> anObject) {
List<String> ls = anObject;
List<String> lss = anObject;
List<Integer> li = new ArrayList<>();
}
}
@@ -0,0 +1,9 @@
import java.util.*;
class Test {
void foo() {
List<String> ls = <selection>new ArrayList<>()</selection>;
List<String> lss = new ArrayList<>();
List<Integer> li = new ArrayList<>();
}
}