PSI2IR: capture adapted reference receiver to a local val if required

This commit is contained in:
Dmitry Petrov
2020-01-21 14:26:49 +03:00
parent 38b90b7fbd
commit 57bbfbbfcc
9 changed files with 488 additions and 10 deletions
@@ -1348,6 +1348,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/expressions/callableReferences"), Pattern.compile("^(.+)\\.kt$"), null, true);
}
@TestMetadata("constructorWithAdaptedArguments.kt")
public void testConstructorWithAdaptedArguments() throws Exception {
runTest("compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.kt");
}
@TestMetadata("genericMember.kt")
public void testGenericMember() throws Exception {
runTest("compiler/testData/ir/irText/expressions/callableReferences/genericMember.kt");
@@ -1368,6 +1373,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
runTest("compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.kt");
}
@TestMetadata("withArgumentAdaptationAndReceiver.kt")
public void testWithArgumentAdaptationAndReceiver() throws Exception {
runTest("compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.kt");
}
@TestMetadata("withVarargViewedAsArray.kt")
public void testWithVarargViewedAsArray() throws Exception {
runTest("compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.kt");