change signature from usage: ignore types of poly expressions if they are not assignable (IDEA-156521)

This commit is contained in:
Anna Kozlova
2016-05-25 18:40:17 +03:00
parent db0ea9e855
commit 3e2423f245
4 changed files with 17 additions and 1 deletions
@@ -1,4 +1,4 @@
// "Change 1st parameter of method 'foo' from 'ArrayList<String>' to 'HashSet<E>'" "false"
// "<html> Change signature of foo(<s>ArrayList&lt;String&gt;</s> <b>HashSet&lt;E&gt;</b>)</html>" "false"
import java.util.ArrayList;
import java.util.HashSet;
@@ -0,0 +1,10 @@
// "<html> Change signature of foo(<s>boolean</s> <b>HashSet&lt;E&gt;</b>)</html>" "false"
import java.util.*;
class IntentionIssue {
void foo(boolean b) {}
void foo(ArrayList<String> lst) {}
void bar() {
foo(new Hash<caret>Set<>());
}
}