IR: fix internal visibility check in override builder

In case there are Java sources in the module, K2 creates two instances
of `FirModuleDescriptor` with the same name: one for Kotlin sources, one
for Java sources. When building fake overrides in IR, it's important to
understand that those are the same module. Currently it's done by
comparing the names, but in the future it may be improved in KT-62534.

The changed test was in fact unrelated to KT-61805, and the problem
there was rather that no fake override was created for internal property
`schemeState` in `InspectionProfileModifiableModel`.
This commit is contained in:
Alexander Udalov
2023-11-10 11:11:33 +01:00
committed by Space Team
parent c30eb1c56a
commit 39fda3535a
2 changed files with 1 additions and 7 deletions
@@ -1,5 +1,4 @@
// TARGET_BACKEND: JVM
// IGNORE_CODEGEN_WITH_IR_FAKE_OVERRIDE_GENERATION: KT-61805
// WITH_STDLIB
// ISSUE: KT-56538