@@ -86,8 +86,6 @@ struct IncompatibleConcurrencyAnnotationRuleExamples {
8686 Example ( " public struct S { public ↓func sendableClosure(_ block: @Sendable () -> Void) } " ) ,
8787 Example ( " public ↓init(_ block: @Sendable () -> Void) " ) ,
8888 Example ( " public ↓init(param: @MainActor () -> Void) " ) ,
89- Example ( " public ↓func sendingParameter(_ value: sending MyClass) " ) ,
90- Example ( " public ↓func closureWithSendingArgument(_ handler: (_ value: sending MyClass) -> Void) " ) ,
9189 Example ( """
9290 public ↓func tupleParameter(
9391 _ handlers: (@Sendable () -> Void, @MainActor () -> Void)
@@ -110,7 +108,6 @@ struct IncompatibleConcurrencyAnnotationRuleExamples {
110108 Example ( " public ↓func returnsSendableClosure() -> @Sendable () -> Void " ) ,
111109 Example ( " public ↓func returnsActorClosure() -> @MainActor () -> Void " ) ,
112110 Example ( " public ↓func returnsClosureTuple() -> (@Sendable () -> Void, @MainActor () -> Void) " ) ,
113- Example ( " public ↓func returnsClosureWithSendingArgument() -> (_ value: sending MyClass) -> Void " ) ,
114111
115112 // Custom global actors with configuration
116113 Example (
@@ -206,18 +203,6 @@ struct IncompatibleConcurrencyAnnotationRuleExamples {
206203 public func globalActorClosure(_ block: @MainActor () -> Void) {}
207204 """ ) ,
208205
209- Example ( " public func sendingParameter(_ value: sending MyClass) {} " ) :
210- Example ( """
211- @preconcurrency
212- public func sendingParameter(_ value: sending MyClass) {}
213- """ ) ,
214-
215- Example ( " public func closureWithSendingArgument(_ handler: (_ value: sending MyClass) -> Void) {} " ) :
216- Example ( """
217- @preconcurrency
218- public func closureWithSendingArgument(_ handler: (_ value: sending MyClass) -> Void) {}
219- """ ) ,
220-
221206 Example ( " public func tupleParameter(_ handlers: (@Sendable () -> Void, @MainActor () -> Void)) {} " ) :
222207 Example ( """
223208 @preconcurrency
@@ -280,12 +265,6 @@ struct IncompatibleConcurrencyAnnotationRuleExamples {
280265 public func returnsClosureTuple() -> (@Sendable () -> Void, @MainActor () -> Void) {}
281266 """ ) ,
282267
283- Example ( " public func returnsClosureWithSendingArgument() -> (_ value: sending MyClass) -> Void {} " ) :
284- Example ( """
285- @preconcurrency
286- public func returnsClosureWithSendingArgument() -> (_ value: sending MyClass) -> Void {}
287- """ ) ,
288-
289268 // Custom global actors with configuration
290269 Example (
291270 " @MyActor public struct S {} " ,
0 commit comments