Add support for mixed named arguments to parameter info popup

Don't display parameter info in square brackets if the caller doesn't
have to use a named argument. This makes the parameter info popup
reflect the new capability introduced with
MixedNamedArgumentsInTheirOwnPosition.

^KT-41645 Fixed
This commit is contained in:
cketti
2020-09-03 12:30:27 +02:00
committed by Vladimir Dolzhenko
parent af6e744b65
commit 91c021c699
4 changed files with 58 additions and 5 deletions
@@ -196,6 +196,16 @@ public class ParameterInfoTestGenerated extends AbstractParameterInfoTest {
runTest("idea/testData/parameterInfo/functionCall/LocalFunctionBug.kt");
}
@TestMetadata("MixedNamedArguments.kt")
public void testMixedNamedArguments() throws Exception {
runTest("idea/testData/parameterInfo/functionCall/MixedNamedArguments.kt");
}
@TestMetadata("MixedNamedArguments2.kt")
public void testMixedNamedArguments2() throws Exception {
runTest("idea/testData/parameterInfo/functionCall/MixedNamedArguments2.kt");
}
@TestMetadata("NamedAndDefaultParameter.kt")
public void testNamedAndDefaultParameter() throws Exception {
runTest("idea/testData/parameterInfo/functionCall/NamedAndDefaultParameter.kt");