Fix adaptation for references with default values after varargs

After vararg argument it's possible to pass values only by name, so
 here we modulate this behavior

 #KT-37721 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-06-26 05:39:10 +03:00
parent c5a2ab2512
commit c2c139ef4f
10 changed files with 92 additions and 3 deletions
@@ -2110,6 +2110,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/noReflectionForAdaptedCallableReferencesWithSuspendConversion.kt");
}
@TestMetadata("referenceToVarargWithDefaults.kt")
public void testReferenceToVarargWithDefaults() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/referenceToVarargWithDefaults.kt");
}
@TestMetadata("reflectionForVarargAsArray.kt")
public void testReflectionForVarargAsArray() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/adaptedReferences/reflectionForVarargAsArray.kt");