change signature: copy non varargs arg to varargs position (IDEA-65913)

This commit is contained in:
anna
2011-02-28 10:57:31 +01:00
parent b9fb679044
commit 80b3fd3829
4 changed files with 62 additions and 1 deletions

View File

@@ -187,6 +187,13 @@ public class ChangeSignatureTest extends LightCodeInsightTestCase {
}, false);
}
public void testVarargs2() throws Exception {
doTest(null, new ParameterInfoImpl[] {
new ParameterInfoImpl(1, "i", PsiType.INT),
new ParameterInfoImpl(0, "b", new PsiEllipsisType(PsiType.BOOLEAN))
}, false);
}
public void testCovariantReturnType() throws Exception {
doTest("java.lang.Runnable", new ParameterInfoImpl[0], false);
}