backend: Set returnType for local constructors

This commit is contained in:
Ilya Matveev
2017-02-22 17:45:37 +03:00
committed by ilmat192
parent 925b1fb0b6
commit 912fa136f1
@@ -526,6 +526,7 @@ class LocalDeclarationsLowering(val context: BackendContext) : DeclarationContai
Visibilities.PRIVATE,
newTypeParameters
)
newDescriptor.returnType = oldDescriptor.returnType
oldDescriptor.dispatchReceiverParameter?.let {
recordRemappedParameter(it, newDescriptor.dispatchReceiverParameter!!)