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
@@ -1354,6 +1354,11 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
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");
@@ -1369,11 +1374,6 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
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");
@@ -1384,6 +1384,11 @@ public class Fir2IrTextTestGenerated extends AbstractFir2IrTextTest {
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");