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:
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user