JVM_IR: propagate reified type parameter usages from inline lambdas

...to whichever class they are inlined into, not the class they are
declared in (which is not the same if the lambda is crossinline).

 #KT-46584 Fixed
This commit is contained in:
pyos
2021-05-11 16:19:20 +02:00
committed by TeamCityServer
parent e079fb665e
commit 3fc2cc410c
19 changed files with 175 additions and 45 deletions
@@ -3025,6 +3025,16 @@ public class IrJsCodegenInlineES6TestGenerated extends AbstractIrJsCodegenInline
runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_values.kt");
}
@TestMetadata("kt46584.kt")
public void testKt46584() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt46584.kt");
}
@TestMetadata("kt46584_2.kt")
public void testKt46584_2() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt46584_2.kt");
}
@TestMetadata("kt7017.kt")
public void testKt7017() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt7017.kt");
@@ -3025,6 +3025,16 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes
runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_values.kt");
}
@TestMetadata("kt46584.kt")
public void testKt46584() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt46584.kt");
}
@TestMetadata("kt46584_2.kt")
public void testKt46584_2() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt46584_2.kt");
}
@TestMetadata("kt7017.kt")
public void testKt7017() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt7017.kt");
@@ -3025,6 +3025,16 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest {
runTest("compiler/testData/codegen/boxInline/reified/kt35511_try_values.kt");
}
@TestMetadata("kt46584.kt")
public void testKt46584() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt46584.kt");
}
@TestMetadata("kt46584_2.kt")
public void testKt46584_2() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt46584_2.kt");
}
@TestMetadata("kt7017.kt")
public void testKt7017() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt7017.kt");