disable surroundWith fix for var typed locals with non-denotable inferred types

IDEA-CR-33936
This commit is contained in:
Anna Kozlova
2018-06-25 16:28:59 +03:00
parent 64b2e21dba
commit 810a23812f
2 changed files with 17 additions and 1 deletions
@@ -0,0 +1,11 @@
// "Surround with try/catch" "false"
class Test {
public static void main(String[] args) {
var foo = new T<caret>est() {
int x = 2;
};
System.out.println(foo.x);
}
Test() throws Exception {}
}