Support toString for AdaptedFunctionReference subclasses

Also make it serializable like other lambdas, suspend lambdas and normal
callable references.
This commit is contained in:
Alexander Udalov
2020-04-07 16:55:56 +02:00
parent fa879e667f
commit 9f758b4f25
9 changed files with 120 additions and 3 deletions
@@ -147,7 +147,7 @@ class JvmRuntimeTypes(
?: referencedFunction.dispatchReceiverParameter?.type,
anonymousFunctionDescriptor.valueParameters.drop(receivers).map { it.type },
null,
referencedFunction.returnType!!,
anonymousFunctionDescriptor.returnType!!,
referencedFunction.isSuspend
)