IDEA-26763 Auto-complete Generics on the RHS (now in basic completion as well)

This commit is contained in:
peter
2012-03-09 23:16:01 +04:00
parent ed3f7f1132
commit e383348498
7 changed files with 35 additions and 4 deletions
@@ -0,0 +1,5 @@
import java.util.HashMap;
public class A {
private HashMap<String, String> m = new HashMap<St<caret>>()
}
@@ -0,0 +1,5 @@
import java.util.HashMap;
public class A {
private HashMap<String, String> m = new HashMap<String, String>(<caret>)
}
@@ -1,5 +1,5 @@
class HashMap<T,V> {}
public class A {
private HashMap<String, String> m = new HashMap<String, String><caret>();
private HashMap<String, String> m = new HashMap<String, String>();<caret>
}
@@ -1315,4 +1315,13 @@ public class ListUtils {
checkResult()
}
public void testSuggestAllTypeArguments() {
configure()
assert 'String, String' == lookup.items[1].lookupString
lookup.currentItem = lookup.items[1]
type '\n'
checkResult()
}
}