diamonds: don't accept inferred types when error appeared during inference (IDEA-154619)

This commit is contained in:
Anna.Kozlova
2016-04-21 18:39:23 +02:00
parent 1fdce7d341
commit 5d6351b1ec
5 changed files with 30 additions and 5 deletions
@@ -0,0 +1,13 @@
// "Change 1st parameter of method 'foo' from 'ArrayList<String>' to 'HashSet<E>'" "false"
import java.util.ArrayList;
import java.util.HashSet;
class InspecitonIssue {
void foo(ArrayList<String> lst) {}
void bar() {
foo(new Hash<caret>Set<>());
}
}