Minor, add regression test for K2 delegation issue
#KT-62120
This commit is contained in:
committed by
Space Team
parent
5506384cc9
commit
d2ebaf4e6c
+6
@@ -16214,6 +16214,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
|
||||
runTest("compiler/testData/codegen/box/delegation/byMiddleInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("computeIfAbsent.kt")
|
||||
public void testComputeIfAbsent() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/computeIfAbsent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultOverride.kt")
|
||||
public void testDefaultOverride() throws Exception {
|
||||
|
||||
+6
@@ -16214,6 +16214,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
|
||||
runTest("compiler/testData/codegen/box/delegation/byMiddleInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("computeIfAbsent.kt")
|
||||
public void testComputeIfAbsent() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/computeIfAbsent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultOverride.kt")
|
||||
public void testDefaultOverride() throws Exception {
|
||||
|
||||
+6
@@ -16155,6 +16155,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/delegation/byMiddleInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("computeIfAbsent.kt")
|
||||
public void testComputeIfAbsent() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/computeIfAbsent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultOverride.kt")
|
||||
public void testDefaultOverride() throws Exception {
|
||||
|
||||
+6
@@ -16155,6 +16155,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
||||
runTest("compiler/testData/codegen/box/delegation/byMiddleInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("computeIfAbsent.kt")
|
||||
public void testComputeIfAbsent() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/computeIfAbsent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultOverride.kt")
|
||||
public void testDefaultOverride() throws Exception {
|
||||
|
||||
+6
@@ -16155,6 +16155,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/delegation/byMiddleInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("computeIfAbsent.kt")
|
||||
public void testComputeIfAbsent() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/computeIfAbsent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultOverride.kt")
|
||||
public void testDefaultOverride() throws Exception {
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_STDLIB
|
||||
// FULL_JDK
|
||||
|
||||
class MyMap : MutableMap<Int, String> by hashMapOf()
|
||||
|
||||
fun box(): String {
|
||||
val map = MyMap()
|
||||
return map.computeIfAbsent(42) { "OK" }
|
||||
}
|
||||
+6
@@ -15783,6 +15783,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/delegation/byMiddleInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("computeIfAbsent.kt")
|
||||
public void testComputeIfAbsent() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/computeIfAbsent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultOverride.kt")
|
||||
public void testDefaultOverride() throws Exception {
|
||||
|
||||
+6
@@ -16155,6 +16155,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/delegation/byMiddleInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("computeIfAbsent.kt")
|
||||
public void testComputeIfAbsent() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/computeIfAbsent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultOverride.kt")
|
||||
public void testDefaultOverride() throws Exception {
|
||||
|
||||
+6
@@ -16155,6 +16155,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/delegation/byMiddleInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("computeIfAbsent.kt")
|
||||
public void testComputeIfAbsent() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/computeIfAbsent.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultOverride.kt")
|
||||
public void testDefaultOverride() throws Exception {
|
||||
|
||||
+5
@@ -13310,6 +13310,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/delegation/byMiddleInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("computeIfAbsent.kt")
|
||||
public void testComputeIfAbsent() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/computeIfAbsent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultOverride.kt")
|
||||
public void testDefaultOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/delegation/defaultOverride.kt");
|
||||
|
||||
Reference in New Issue
Block a user