retrieve expected type by containing array creation expression (IDEA-132794)

This commit is contained in:
Anna Kozlova
2014-11-12 19:38:03 +01:00
parent fd9f90239d
commit b5a7fdbbf8
3 changed files with 22 additions and 0 deletions
@@ -0,0 +1,9 @@
class Test {
public <T> T f() {
return null;
}
public Object foo() {
return true ? new String[]{f()} : new String[][]{f()};
}
}