mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Sema] Validate that @_inheritActorContext is used only on @Sendable/sending and async/@isolated(any) parameters
This commit is contained in:
@@ -257,5 +257,5 @@ struct AnyEraser: EraserProto {
|
||||
init<T: EraserProto>(erasing: T) {}
|
||||
}
|
||||
|
||||
func takeNone(@_inheritActorContext param: () async -> ()) { }
|
||||
func takeAlways(@_inheritActorContext(always) param: () async -> ()) { }
|
||||
func takeNone(@_inheritActorContext param: @Sendable () async -> ()) { }
|
||||
func takeAlways(@_inheritActorContext(always) param: sending @isolated(any) () -> ()) { }
|
||||
|
||||
Reference in New Issue
Block a user