This pitch proposes that @Sendable func should be inferred on types that conform to Sendable.
But methods of a nominal type cannot capture anything but the object instance itself. Thus, the proposed simplifications are:
- the inference of
@Sendableon all methods of a type that conforms toSendable.- the inference of
@Sendableon all non-local functions.- the prohibition of marking a method
@Sendableif the object type does not conform toSendable.