FIR resolve: set property accessor return type to initializer type

This commit is contained in:
Mikhail Glukhikh
2019-06-17 14:15:18 +03:00
parent 7e2828c276
commit 11620d848b
@@ -907,6 +907,9 @@ open class FirBodyResolveTransformer(val session: FirSession, val implicitTypeOn
else -> resultType
}
)
if (variable is FirProperty) {
variable.getter.transformReturnTypeRef(this, variable.returnTypeRef)
}
}
variable.delegate != null -> {
// TODO: type from delegate