Use .fullyExpandedType to get serializable annotation from inside typealias

to correctly handle 'global customization via typealias' feature
in K2 serialization plugin.
This commit is contained in:
Leonid Startsev
2022-11-16 14:51:29 +01:00
committed by Space Team
parent 76fc7ce0ad
commit 9586bf74e0
4 changed files with 58 additions and 1 deletions
@@ -128,6 +128,12 @@ public class SerializationFirBlackBoxTestGenerated extends AbstractSerialization
public void testStarProjections() throws Exception {
runTest("plugins/kotlinx-serialization/testData/boxIr/starProjections.kt");
}
@Test
@TestMetadata("typealiasesTest.kt")
public void testTypealiasesTest() throws Exception {
runTest("plugins/kotlinx-serialization/testData/boxIr/typealiasesTest.kt");
}
}
@Nested
@@ -126,4 +126,10 @@ public class SerializationIrBoxTestGenerated extends AbstractSerializationIrBoxT
public void testStarProjections() throws Exception {
runTest("plugins/kotlinx-serialization/testData/boxIr/starProjections.kt");
}
@Test
@TestMetadata("typealiasesTest.kt")
public void testTypealiasesTest() throws Exception {
runTest("plugins/kotlinx-serialization/testData/boxIr/typealiasesTest.kt");
}
}