Don't remove checkcast for reified values

#KT-35511 Fixed
This commit is contained in:
Mikhael Bogdanov
2021-01-26 12:42:57 +01:00
parent 0b0ba7d987
commit 16928d6e3f
13 changed files with 174 additions and 2 deletions
@@ -3183,6 +3183,16 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
}
@TestMetadata("kt35511.kt")
public void testKt35511() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt");
}
@TestMetadata("kt35511_try.kt")
public void testKt35511_try() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt35511_try.kt");
}
@TestMetadata("kt6988.kt")
public void testKt6988() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt6988.kt");
@@ -3183,6 +3183,16 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
}
@TestMetadata("kt35511.kt")
public void testKt35511() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt");
}
@TestMetadata("kt35511_try.kt")
public void testKt35511_try() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt35511_try.kt");
}
@TestMetadata("kt6988.kt")
public void testKt6988() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt6988.kt");
@@ -3183,6 +3183,16 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
}
@TestMetadata("kt35511.kt")
public void testKt35511() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt");
}
@TestMetadata("kt35511_try.kt")
public void testKt35511_try() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt35511_try.kt");
}
@TestMetadata("kt6988.kt")
public void testKt6988() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt6988.kt");
@@ -3183,6 +3183,16 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
}
@TestMetadata("kt35511.kt")
public void testKt35511() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt");
}
@TestMetadata("kt35511_try.kt")
public void testKt35511_try() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt35511_try.kt");
}
@TestMetadata("kt6988.kt")
public void testKt6988() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt6988.kt");
@@ -3183,6 +3183,16 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
}
@TestMetadata("kt35511.kt")
public void testKt35511() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt");
}
@TestMetadata("kt35511_try.kt")
public void testKt35511_try() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt35511_try.kt");
}
@TestMetadata("kt6988.kt")
public void testKt6988() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt6988.kt");
@@ -3183,6 +3183,16 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst
runTest("compiler/testData/codegen/boxInline/reified/kt18977.kt");
}
@TestMetadata("kt35511.kt")
public void testKt35511() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt35511.kt");
}
@TestMetadata("kt35511_try.kt")
public void testKt35511_try() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt35511_try.kt");
}
@TestMetadata("kt6988.kt")
public void testKt6988() throws Exception {
runTest("compiler/testData/codegen/boxInline/reified/kt6988.kt");