FIR: set substituteTypes value explicitly in calls inside providers

This commit is contained in:
Mikhail Glukhikh
2021-10-19 16:17:47 +03:00
parent 3483bc41fd
commit 98d34b40ab
3 changed files with 9 additions and 6 deletions
@@ -88,7 +88,9 @@ object JavaScopeProvider : FirScopeProvider() {
if (regularClass.isThereLoopInSupertypes(useSiteSession))
listOf(StandardClassIds.Any.constructClassLikeType(emptyArray(), isNullable = false))
else
lookupSuperTypes(regularClass, lookupInterfaces = true, deep = false, useSiteSession = useSiteSession)
lookupSuperTypes(
regularClass, lookupInterfaces = true, deep = false, useSiteSession = useSiteSession, substituteTypes = true
)
val superTypeScopes = superTypes.mapNotNull {
it.scopeForSupertype(useSiteSession, scopeSession, subClass = regularClass)