You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...which is used in a manner similar to what's described in the doc comment for ConnectError.unpackedDetails:
let myMessage = error.unpackFirst(SomeMessageType.self).
I am working on migrating my package to support Swift 6, and when building with Xcode 16.1 and compiling with Swift 6, I am receiving the following error in my function's implementation
unpackedDetails().first -> "Type of expression is ambiguous without a type annotation".
I have been able to resolve the issue by adjusting my function implementation as follows:
Updates the documentation comment for `ConnectError.unpackedDetails` to
include suggested syntax for accessing the first error of a specific
type in a manner that is compatible with Swift 6 and Xcode 16.x.
For more information, please refer to #323.
Closes#323
Signed-off-by: Eddie Seay <[email protected]>
I have a helper extension in one up my packages that depends on Connect-Swift that is defined as follows:
...which is used in a manner similar to what's described in the doc comment for
ConnectError.unpackedDetails
:let myMessage = error.unpackFirst(SomeMessageType.self)
.I am working on migrating my package to support Swift 6, and when building with Xcode 16.1 and compiling with Swift 6, I am receiving the following error in my function's implementation
unpackedDetails().first -> "Type of expression is ambiguous without a type annotation"
.I have been able to resolve the issue by adjusting my function implementation as follows:
The text was updated successfully, but these errors were encountered: