GenericsUtil: LUB(Object[], int[]) = Object & Cloneable & Serializable type (not Object[])

Part of IDEA-209568
This commit is contained in:
Tagir Valeev
2019-03-26 11:18:21 +07:00
parent e85e0ebdfb
commit 65cff5c8b2
3 changed files with 8 additions and 2 deletions
@@ -0,0 +1,5 @@
class X {
void test(boolean flag) {
int a = (flag ? new Object[0] : new int[0]).<error descr="Cannot resolve symbol 'length'">length</error>;
}
}