[FIR] Fix callable reference adaptation for overrides without defaults
Provide the correct scope to the argument mapping so that default values in overridden functions are considered. ^KT-56864 Fixed
This commit is contained in:
committed by
Space Team
parent
9d352694af
commit
b2fbf8bed5
+6
@@ -3166,6 +3166,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/adapted/adaptationInWhenWithMapOf.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("adaptationToOverridenWithoutDefault.kt")
|
||||
public void testAdaptationToOverridenWithoutDefault() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/adapted/adaptationToOverridenWithoutDefault.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAllFilesPresentInAdapted() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/callableReference/adapted"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.(fir|ll)\\.kts?$"), true);
|
||||
|
||||
Reference in New Issue
Block a user