[FIR] KT-57665: Make dynamic members' parameters dynamic

Parameter types are not only used "to accept" some data,
but they also are used as inputs for inference
(expected types)

^KT-57665 Fixed
This commit is contained in:
Nikolay Lunyak
2023-03-31 17:16:42 +03:00
committed by Space Team
parent 18f80b1ab5
commit 3b0a923210
4 changed files with 11 additions and 25 deletions
@@ -128,7 +128,7 @@ class FirDynamicMembersStorage(val session: FirSession) : FirSessionComponent {
private val anyArrayTypeRef = buildResolvedTypeRef {
type = ConeClassLikeTypeImpl(
StandardClassIds.Array.toLookupTag(),
arrayOf(session.builtinTypes.nullableAnyType.coneType),
arrayOf(dynamicTypeRef.coneType),
isNullable = false
)
}