smart completion: diamonds: forbid non applicable diamonds based on the completion position (IDEA-87053)

This commit is contained in:
Anna Kozlova
2012-06-06 14:37:03 +04:00
parent e351e49a8a
commit bbb0760dbb
4 changed files with 43 additions and 7 deletions
@@ -0,0 +1,15 @@
import java.util.ArrayList;
public class TestCompletion {
public static void test() {
A<ArrayList<String>> ref = new A<>();
ref.set(new ArrayList<String>(<caret>) );
}
}
class A<V> {
A() {
}
void set(V v){}
}
@@ -0,0 +1,15 @@
import java.util.ArrayList;
public class TestCompletion {
public static void test() {
A<ArrayList<String>> ref = new A<>();
ref.set(new <caret> );
}
}
class A<V> {
A() {
}
void set(V v){}
}