[FIR] Fix order of supertype scopes for supertypes of companion object

^KT-54645 Fixed
This commit is contained in:
Dmitriy Novozhilov
2022-10-24 15:14:36 +03:00
committed by Space Team
parent d54503e66c
commit f441151eab
2 changed files with 1 additions and 2 deletions
@@ -200,7 +200,7 @@ private fun createOtherScopesForNestedClassesOrCompanion(
klass,
lookupInterfaces = false, deep = true, substituteTypes = true, useSiteSession = session,
supertypeSupplier = supertypeComputationSession.supertypesSupplier
).asReversed().mapNotNullTo(this) {
).mapNotNullTo(this) {
it.lookupTag.getNestedClassifierScope(session, scopeSession)
?.wrapNestedClassifierScopeWithSubstitutionForSuperType(it, session)
}
-1
View File
@@ -1,5 +1,4 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
// ISSUE: KT-54645
abstract class Base {