FIR resolve: set setter value-parameter type properly

This commit is contained in:
Simon Ogorodnik
2019-05-20 19:55:16 +03:00
committed by Mikhail Glukhikh
parent 38d3438101
commit 58873b2d7b
5 changed files with 15 additions and 13 deletions
@@ -938,7 +938,9 @@ open class FirBodyResolveTransformer(val session: FirSession, val implicitTypeOn
if (property.returnTypeRef !is FirImplicitTypeRef && implicitTypeOnly) return property.compose()
return withScopeCleanup(localScopes) {
localScopes.addIfNotNull(primaryConstructorParametersScope)
transformVariable(property, data)
(transformVariable(property, data).single as FirProperty).apply {
setter?.let { it.valueParameters[0].transformReturnTypeRef(StoreType, property.returnTypeRef) }
}.compose()
}
}