Correctly determine the type of serializable property

when supertype of serializable class is generic and also serializable,
and contains the property with type with its generic parameter.

Fixes https://github.com/Kotlin/kotlinx.serialization/issues/1264
#KT-43910 Fixed
#KT-49660 Fixed
This commit is contained in:
Leonid Startsev
2022-10-04 20:08:13 +02:00
committed by Space Team
parent 2ea0cdf46d
commit 2a626b27d3
5 changed files with 169 additions and 16 deletions
@@ -51,6 +51,18 @@ public class SerializationFirBlackBoxTestGenerated extends AbstractSerialization
runTest("plugins/kotlinx-serialization/testData/boxIr/enumsAreCached.kt");
}
@Test
@TestMetadata("genericBaseClassMultiple.kt")
public void testGenericBaseClassMultiple() throws Exception {
runTest("plugins/kotlinx-serialization/testData/boxIr/genericBaseClassMultiple.kt");
}
@Test
@TestMetadata("genericBaseClassSimple.kt")
public void testGenericBaseClassSimple() throws Exception {
runTest("plugins/kotlinx-serialization/testData/boxIr/genericBaseClassSimple.kt");
}
@Test
@TestMetadata("generics.kt")
public void testGenerics() throws Exception {
@@ -49,6 +49,18 @@ public class SerializationIrBoxTestGenerated extends AbstractSerializationIrBoxT
runTest("plugins/kotlinx-serialization/testData/boxIr/enumsAreCached.kt");
}
@Test
@TestMetadata("genericBaseClassMultiple.kt")
public void testGenericBaseClassMultiple() throws Exception {
runTest("plugins/kotlinx-serialization/testData/boxIr/genericBaseClassMultiple.kt");
}
@Test
@TestMetadata("genericBaseClassSimple.kt")
public void testGenericBaseClassSimple() throws Exception {
runTest("plugins/kotlinx-serialization/testData/boxIr/genericBaseClassSimple.kt");
}
@Test
@TestMetadata("generics.kt")
public void testGenerics() throws Exception {