1420 if (localEnv.info.varArgs) |
1420 if (localEnv.info.varArgs) |
1421 assert mtype.isErroneous() || tree.varargsElement != null; |
1421 assert mtype.isErroneous() || tree.varargsElement != null; |
1422 |
1422 |
1423 // Compute the result type. |
1423 // Compute the result type. |
1424 Type restype = mtype.getReturnType(); |
1424 Type restype = mtype.getReturnType(); |
1425 assert restype.tag != WILDCARD : mtype; |
1425 if (restype.tag == WILDCARD) |
|
1426 throw new AssertionError(mtype); |
1426 |
1427 |
1427 // as a special case, array.clone() has a result that is |
1428 // as a special case, array.clone() has a result that is |
1428 // the same as static type of the array being cloned |
1429 // the same as static type of the array being cloned |
1429 if (tree.meth.getTag() == JCTree.SELECT && |
1430 if (tree.meth.getTag() == JCTree.SELECT && |
1430 allowCovariantReturns && |
1431 allowCovariantReturns && |