cleanup anonymous type when asked for variable type

check that effective cast type will help (IDEA-190473)
This commit is contained in:
Anna.Kozlova
2018-04-19 13:23:22 +02:00
parent bce05603fa
commit 300ba0e9bb
5 changed files with 27 additions and 5 deletions
@@ -0,0 +1,11 @@
// "Cast to 'java.lang.Object'" "false"
class Scope<T> {
T val;
void f() {
var y = new Object();
var x = new Object() {
int a = 12;
};
x =<caret> val;
}
}
@@ -0,0 +1,10 @@
// "Cast to 'java.lang.Object'" "false"
class A {
void f() {
var y = new Object();
var x = new Object() {
int a = 12;
};
x = <caret>y;
}
}