FIR resolve: set setter value-parameter type properly
This commit is contained in:
committed by
Mikhail Glukhikh
parent
38d3438101
commit
58873b2d7b
+3
-1
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user