Fix KT-51478
The issue was that, when various context elements were available to fulfill a need for an extension receiver, but none of them were applicable to it, the compiler behaved the same way as if there was no extension receiver at all. https://youtrack.jetbrains.com/issue/KT-51478/Inapplicable-receiver-diagnostic-expected-when-there-are-two-context-receiver-candidates
This commit is contained in:
committed by
teamcity
parent
dccb7faf2e
commit
4cbee3cde7
+6
@@ -11079,6 +11079,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithReceiverLabelsProperties.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("twoReceiverCandidatesError.kt")
|
||||
public void testTwoReceiverCandidatesError() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/extensions/contextReceivers/twoReceiverCandidatesError.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeParameterAsContextReceiver.kt")
|
||||
public void testTypeParameterAsContextReceiver() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user