Don't mark signature as inapplicable when argument is empty/incomplete

This will improve the usability when using named arguments where
incomplete arguments can't be mapped to a parameter simply by position.

^KT-24172 Fixed
This commit is contained in:
cketti
2020-09-03 19:45:32 +02:00
committed by Vladimir Dolzhenko
parent 343010a833
commit 78493395c3
7 changed files with 75 additions and 3 deletions
@@ -221,6 +221,11 @@ public class ParameterInfoTestGenerated extends AbstractParameterInfoTest {
runTest("idea/testData/parameterInfo/functionCall/NamedParameter2.kt");
}
@TestMetadata("NamedParameter3.kt")
public void testNamedParameter3() throws Exception {
runTest("idea/testData/parameterInfo/functionCall/NamedParameter3.kt");
}
@TestMetadata("NoAnnotations.kt")
public void testNoAnnotations() throws Exception {
runTest("idea/testData/parameterInfo/functionCall/NoAnnotations.kt");
@@ -346,6 +351,16 @@ public class ParameterInfoTestGenerated extends AbstractParameterInfoTest {
runTest("idea/testData/parameterInfo/functionCall/TooManyArgs.kt");
}
@TestMetadata("TooManyArgs2.kt")
public void testTooManyArgs2() throws Exception {
runTest("idea/testData/parameterInfo/functionCall/TooManyArgs2.kt");
}
@TestMetadata("TrailingComma.kt")
public void testTrailingComma() throws Exception {
runTest("idea/testData/parameterInfo/functionCall/TrailingComma.kt");
}
@TestMetadata("TwoFunctions.kt")
public void testTwoFunctions() throws Exception {
runTest("idea/testData/parameterInfo/functionCall/TwoFunctions.kt");