[Native] Move isRestrictedSuspendFunction from IrUtils2
This function is also helpful for JVM backend.
This commit is contained in:
+3
@@ -144,6 +144,9 @@ fun KotlinType.isRestrictsSuspensionReceiver() = (listOf(this) + this.supertypes
|
||||
) == true
|
||||
}
|
||||
|
||||
fun FunctionDescriptor.isRestrictedSuspendFunction(): Boolean =
|
||||
extensionReceiverParameter?.type?.isRestrictsSuspensionReceiver() == true
|
||||
|
||||
private fun checkRestrictsSuspension(
|
||||
enclosingSuspendCallableDescriptor: CallableDescriptor,
|
||||
resolvedCall: ResolvedCall<*>,
|
||||
|
||||
Reference in New Issue
Block a user