PSI2IR: SAM conversion should be performed once for index variables

Given esoteric code as in 'caoWithAdaptationForSam.kt', we should make
sure that we pass same objects to 'get' and 'set'.
This commit is contained in:
Dmitry Petrov
2020-01-28 17:12:50 +03:00
parent e750528551
commit bf9673a0a2
14 changed files with 689 additions and 125 deletions
@@ -1353,6 +1353,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
runTest("compiler/testData/ir/irText/expressions/callableReferences/boundInnerGenericConstructor.kt");
}
@TestMetadata("caoWithAdaptationForSam.kt")
public void testCaoWithAdaptationForSam() throws Exception {
runTest("compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.kt");
}
@TestMetadata("constructorWithAdaptedArguments.kt")
public void testConstructorWithAdaptedArguments() throws Exception {
runTest("compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.kt");
@@ -1368,11 +1373,6 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
runTest("compiler/testData/ir/irText/expressions/callableReferences/importedFromObject.kt");
}
@TestMetadata("letArrayOf.kt")
public void testLetArrayOf() throws Exception {
runTest("compiler/testData/ir/irText/expressions/callableReferences/letArrayOf.kt");
}
@TestMetadata("typeArguments.kt")
public void testTypeArguments() throws Exception {
runTest("compiler/testData/ir/irText/expressions/callableReferences/typeArguments.kt");
@@ -1383,6 +1383,11 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
runTest("compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.kt");
}
@TestMetadata("withAdaptationForSam.kt")
public void testWithAdaptationForSam() throws Exception {
runTest("compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.kt");
}
@TestMetadata("withAdaptedArguments.kt")
public void testWithAdaptedArguments() throws Exception {
runTest("compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.kt");