From 65ef629ca73f5e319307dc9263044096487becad Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Fri, 18 Sep 2020 12:39:55 +0300 Subject: [PATCH] FIR: add ensureResolved to processConstructors --- .../jetbrains/kotlin/fir/resolve/calls/ConstructorProcessing.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ConstructorProcessing.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ConstructorProcessing.kt index 3975c09a470..92f750dcd8e 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ConstructorProcessing.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ConstructorProcessing.kt @@ -13,6 +13,7 @@ import org.jetbrains.kotlin.fir.declarations.builder.buildValueParameter import org.jetbrains.kotlin.fir.resolve.* import org.jetbrains.kotlin.fir.resolve.substitution.ConeSubstitutor import org.jetbrains.kotlin.fir.resolve.substitution.substitutorByMap +import org.jetbrains.kotlin.fir.resolve.transformers.ensureResolved import org.jetbrains.kotlin.fir.scopes.FirScope import org.jetbrains.kotlin.fir.scopes.impl.FirClassSubstitutionScope import org.jetbrains.kotlin.fir.scopes.scope @@ -141,6 +142,7 @@ private fun processConstructors( if (matchedSymbol != null) { val scope = when (matchedSymbol) { is FirTypeAliasSymbol -> { + matchedSymbol.ensureResolved(FirResolvePhase.TYPES, session) val type = matchedSymbol.fir.expandedTypeRef.coneTypeUnsafe().fullyExpandedType(session) val basicScope = type.scope(session, scopeSession)