expected types: do not "erase" too much (IDEA-109700)

This commit is contained in:
Anna Kozlova
2013-06-27 16:23:14 +04:00
parent 17ff190b7c
commit c289233dac
3 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
// "Create Local Variable 'a'" "true"
public class A {
void foo() {
Class<?>[] a = get();
}
Class<?>[] get() {return null;}
}

View File

@@ -0,0 +1,8 @@
// "Create Local Variable 'a'" "true"
public class A {
void foo() {
<caret>a = get();
}
Class<?>[] get() {return null;}
}