if (signature.isVarargs()) {
if (isApplicable(params, args, params.length - 1, args.length, manager, scope)) return true;
-
PsiType lastType = params[params.length - 1].getType();
assert lastType instanceof PsiArrayType;
+ if (TypesUtil.isAssignableByMethodCallConversion(lastType, args[args.length - 1], manager, scope)) return true;
+
PsiType varargType = ((PsiArrayType)lastType).getComponentType();
for (int argCount = args.length - 1; argCount >= notOptional; argCount--) {
public void testStringAndGStringUpperBound() throws Exception {doTest();}
public void testWithMethod() throws Exception {doTest();}
+ public void testByteArrayArgument() throws Exception {doTest();}
public void testForLoopWithNestedEndlessLoop() throws Exception {doTest(new UnassignedVariableAccessInspection());}
public void testIfIncrementElseReturn() throws Exception {doTest(new UnusedDefInspection()); }