FIR resolve: set property accessor return type to initializer type
This commit is contained in:
+3
@@ -907,6 +907,9 @@ open class FirBodyResolveTransformer(val session: FirSession, val implicitTypeOn
|
|||||||
else -> resultType
|
else -> resultType
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
if (variable is FirProperty) {
|
||||||
|
variable.getter.transformReturnTypeRef(this, variable.returnTypeRef)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
variable.delegate != null -> {
|
variable.delegate != null -> {
|
||||||
// TODO: type from delegate
|
// TODO: type from delegate
|
||||||
|
|||||||
Reference in New Issue
Block a user