JVM: do not reify methods of objects in lambdas

All type parameters used in them are not from the inline function
anyway.
This commit is contained in:
pyos
2021-07-07 17:58:17 +02:00
committed by max-kammerer
parent 717cf2066a
commit 07cb3a5ff8
14 changed files with 92 additions and 16 deletions
@@ -3822,6 +3822,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt");
}
@Test
@TestMetadata("nameClash.kt")
public void testNameClash() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/nameClash.kt");
}
@Test
@TestMetadata("nonCapturingObjectInLambda.kt")
public void testNonCapturingObjectInLambda() throws Exception {
@@ -3822,6 +3822,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt");
}
@Test
@TestMetadata("nameClash.kt")
public void testNameClash() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/nameClash.kt");
}
@Test
@TestMetadata("nonCapturingObjectInLambda.kt")
public void testNonCapturingObjectInLambda() throws Exception {
@@ -3822,6 +3822,12 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt");
}
@Test
@TestMetadata("nameClash.kt")
public void testNameClash() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/nameClash.kt");
}
@Test
@TestMetadata("nonCapturingObjectInLambda.kt")
public void testNonCapturingObjectInLambda() throws Exception {
@@ -3822,6 +3822,12 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt");
}
@Test
@TestMetadata("nameClash.kt")
public void testNameClash() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/nameClash.kt");
}
@Test
@TestMetadata("nonCapturingObjectInLambda.kt")
public void testNonCapturingObjectInLambda() throws Exception {
@@ -3822,6 +3822,12 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt");
}
@Test
@TestMetadata("nameClash.kt")
public void testNameClash() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/nameClash.kt");
}
@Test
@TestMetadata("nonCapturingObjectInLambda.kt")
public void testNonCapturingObjectInLambda() throws Exception {
@@ -3822,6 +3822,12 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
runTest("compiler/testData/codegen/boxInline/reified/kt9637_2.kt");
}
@Test
@TestMetadata("nameClash.kt")
public void testNameClash() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/nameClash.kt");
}
@Test
@TestMetadata("nonCapturingObjectInLambda.kt")
public void testNonCapturingObjectInLambda() throws Exception {