[Raw FIR] don't add an implicit Any super reference to kotlin/Any itself

KTIJ-27966
This commit is contained in:
Pavel Kirpichenkov
2023-11-29 20:47:57 +02:00
committed by Space Team
parent d7190af72d
commit c4fe7e4453
16 changed files with 232 additions and 8 deletions
@@ -219,6 +219,18 @@ public class FirOutOfContentRootLazyBodiesCalculatorTestGenerated extends Abstra
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/invalidDestructing.kt");
}
@Test
@TestMetadata("kotlinAny.kt")
public void testKotlinAny() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/kotlinAny.kt");
}
@Test
@TestMetadata("kotlinAnyNonTopLevel.kt")
public void testKotlinAnyNonTopLevel() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/kotlinAnyNonTopLevel.kt");
}
@Test
@TestMetadata("localDeclarationsInEnumEntry.kt")
public void testLocalDeclarationsInEnumEntry() throws Exception {
@@ -309,6 +321,12 @@ public class FirOutOfContentRootLazyBodiesCalculatorTestGenerated extends Abstra
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/typeParameters.kt");
}
@Test
@TestMetadata("userAny.kt")
public void testUserAny() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/userAny.kt");
}
@Test
@TestMetadata("where.kt")
public void testWhere() throws Exception {
@@ -219,6 +219,18 @@ public class FirSourceLazyBodiesCalculatorTestGenerated extends AbstractFirSourc
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/invalidDestructing.kt");
}
@Test
@TestMetadata("kotlinAny.kt")
public void testKotlinAny() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/kotlinAny.kt");
}
@Test
@TestMetadata("kotlinAnyNonTopLevel.kt")
public void testKotlinAnyNonTopLevel() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/kotlinAnyNonTopLevel.kt");
}
@Test
@TestMetadata("localDeclarationsInEnumEntry.kt")
public void testLocalDeclarationsInEnumEntry() throws Exception {
@@ -309,6 +321,12 @@ public class FirSourceLazyBodiesCalculatorTestGenerated extends AbstractFirSourc
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/typeParameters.kt");
}
@Test
@TestMetadata("userAny.kt")
public void testUserAny() throws Exception {
runTest("compiler/fir/raw-fir/psi2fir/testData/rawBuilder/declarations/userAny.kt");
}
@Test
@TestMetadata("where.kt")
public void testWhere() throws Exception {