optionally introduce local as var type since java 10 (IDEA-179176)

This commit is contained in:
Anna.Kozlova
2019-02-05 15:23:14 +01:00
parent 9958e534b3
commit c3b7a9b1c6
12 changed files with 172 additions and 26 deletions
@@ -0,0 +1,9 @@
import java.util.*;
class MyTest {
{
var temp = new ArrayList<String>();
foo(temp);
}
void foo(List<String> l) {}
}
@@ -0,0 +1,8 @@
import java.util.*;
class MyTest {
{
foo(<selection>new ArrayList<>()</selection>);
}
void foo(List<String> l) {}
}