[FIR] Don't expand typealiases when checking for DeprecatedSinceKotlin

During serialization, this can lead to a cycle resulting in a Stack
Overflow.

#KT-58356 Fixed
This commit is contained in:
Kirill Rakhman
2023-06-20 11:27:09 +02:00
committed by Space Team
parent da884bd554
commit c867a4b52f
17 changed files with 115 additions and 8 deletions
@@ -14942,6 +14942,12 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
runTest("compiler/testData/codegen/box/fir/classCanNotBeCastedToVoid.kt");
}
@Test
@TestMetadata("deserializedOptInDeprecated.kt")
public void testDeserializedOptInDeprecated() throws Exception {
runTest("compiler/testData/codegen/box/fir/deserializedOptInDeprecated.kt");
}
@Test
@TestMetadata("falsePositiveBoundSmartcast.kt")
public void testFalsePositiveBoundSmartcast() throws Exception {
@@ -15292,6 +15292,12 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
runTest("compiler/testData/codegen/box/fir/classCanNotBeCastedToVoid.kt");
}
@Test
@TestMetadata("deserializedOptInDeprecated.kt")
public void testDeserializedOptInDeprecated() throws Exception {
runTest("compiler/testData/codegen/box/fir/deserializedOptInDeprecated.kt");
}
@Test
@TestMetadata("falsePositiveBoundSmartcast.kt")
public void testFalsePositiveBoundSmartcast() throws Exception {
@@ -14768,6 +14768,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/box/fir/classCanNotBeCastedToVoid.kt");
}
@Test
@TestMetadata("deserializedOptInDeprecated.kt")
public void testDeserializedOptInDeprecated() throws Exception {
runTest("compiler/testData/codegen/box/fir/deserializedOptInDeprecated.kt");
}
@Test
@TestMetadata("falsePositiveBoundSmartcast.kt")
public void testFalsePositiveBoundSmartcast() throws Exception {
@@ -14943,6 +14943,12 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
runTest("compiler/testData/codegen/box/fir/classCanNotBeCastedToVoid.kt");
}
@Test
@TestMetadata("deserializedOptInDeprecated.kt")
public void testDeserializedOptInDeprecated() throws Exception {
runTest("compiler/testData/codegen/box/fir/deserializedOptInDeprecated.kt");
}
@Test
@TestMetadata("falsePositiveBoundSmartcast.kt")
public void testFalsePositiveBoundSmartcast() throws Exception {