mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Concurrency] Flip the implicitly async select in a concurrency error.
This diagnostic was presenting "implicitly async" for explicitly async calls, and vice versa, because the `select` was incorrect.
This commit is contained in:
@@ -5655,7 +5655,7 @@ ERROR(non_sendable_result_type,none,
|
||||
"%3 '@objc' %kind2}1 cannot cross actor boundary",
|
||||
(Type, unsigned, const ValueDecl *, ActorIsolation))
|
||||
ERROR(non_sendable_call_result_type,none,
|
||||
"non-sendable type %0 returned by %select{implicitly asynchronous |}1"
|
||||
"non-sendable type %0 returned by %select{|implicitly async }1"
|
||||
"call to %2 function cannot cross actor boundary",
|
||||
(Type, bool, ActorIsolation))
|
||||
ERROR(non_sendable_property_type,none,
|
||||
|
||||
Reference in New Issue
Block a user