Fix suspend function with inline class types in reflection

#KT-34024 Fixed
This commit is contained in:
Alexander Udalov
2020-10-27 10:53:23 +01:00
parent 56f7e34e3e
commit dd33ed9297
11 changed files with 234 additions and 21 deletions
@@ -76,7 +76,8 @@ internal class InlineClassAwareCaller<out M : Member?>(
else -> 0
}
val extraArgumentsTail = if (isDefault) 2 else 0
val extraArgumentsTail = (if (isDefault) 2 else 0) +
(if (descriptor is FunctionDescriptor && descriptor.isSuspend) 1 else 0)
val kotlinParameterTypes: List<KotlinType> = ArrayList<KotlinType>().also { kotlinParameterTypes ->
val extensionReceiverType = descriptor.extensionReceiverParameter?.type