Expand type aliases in K2 when checking if serializable class' properties

have serializers.

#KT-56594 Fixed
#KT-56480 Fixed
This commit is contained in:
Leonid Startsev
2023-03-13 16:02:37 +01:00
committed by Space Team
parent 63e27a9713
commit 5cf1c01273
5 changed files with 71 additions and 2 deletions
@@ -151,6 +151,18 @@ public class SerializationFirPsiDiagnosticTestGenerated extends AbstractSerializ
public void testTransients() throws Exception {
runTest("plugins/kotlinx-serialization/testData/diagnostics/Transients.kt");
}
@Test
@TestMetadata("typeAliases.kt")
public void testTypeAliases() throws Exception {
runTest("plugins/kotlinx-serialization/testData/diagnostics/typeAliases.kt");
}
@Test
@TestMetadata("typeAliasesCustomized.kt")
public void testTypeAliasesCustomized() throws Exception {
runTest("plugins/kotlinx-serialization/testData/diagnostics/typeAliasesCustomized.kt");
}
}
@Nested
@@ -149,4 +149,16 @@ public class SerializationPluginDiagnosticTestGenerated extends AbstractSerializ
public void testTransients() throws Exception {
runTest("plugins/kotlinx-serialization/testData/diagnostics/Transients.kt");
}
@Test
@TestMetadata("typeAliases.kt")
public void testTypeAliases() throws Exception {
runTest("plugins/kotlinx-serialization/testData/diagnostics/typeAliases.kt");
}
@Test
@TestMetadata("typeAliasesCustomized.kt")
public void testTypeAliasesCustomized() throws Exception {
runTest("plugins/kotlinx-serialization/testData/diagnostics/typeAliasesCustomized.kt");
}
}