K2: add package FQ name to ClassId of anonymous objects

This is needed because in order to figure out which declarations are
visible from anonymous objects in terms of overridability (see
`FirVisibilityChecker.isVisibleForOverriding`), we need to get the
package name of that anonymous object, because there's package-private
visibility on JVM.

 #KT-62017 Fixed
This commit is contained in:
Alexander Udalov
2023-09-18 17:00:08 +02:00
committed by Space Team
parent 59a9855373
commit 5cae87b263
28 changed files with 156 additions and 90 deletions
@@ -30727,6 +30727,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/package/kt57353.kt");
}
@TestMetadata("kt62017.kt")
public void testKt62017() throws Exception {
runTest("compiler/testData/codegen/box/package/kt62017.kt");
}
@TestMetadata("mainInFiles.kt")
public void testMainInFiles() throws Exception {
runTest("compiler/testData/codegen/box/package/mainInFiles.kt");