enable explicit type -> var for diamonds (IDEA-188771)

expand diamonds and spare on explicit type declaration
This commit is contained in:
Anna Kozlova
2018-06-19 15:50:48 +03:00
parent 1347548a83
commit 681bfe7ba6
3 changed files with 22 additions and 1 deletions
@@ -0,0 +1,8 @@
// "Replace explicit type with 'var'" "true"
class Main {
{
var i = new A<String>();
}
static class A<T> {}
}
@@ -1,4 +1,4 @@
// "Replace explicit type with 'var'" "false"
// "Replace explicit type with 'var'" "true"
class Main {
{
<caret>A<String> i = new A<>();