Skip to content

Examine ExistentialAny #656

@yo1995

Description

@yo1995

-enable-upcoming-feature ExistentialAny

Image

Examine the ExistentialAny conformance in the project and add missing any for the protocol types. Most commonly seen,

Use of protocol 'Error' as a type must be written 'any Error'; this will be an error in a future Swift language mode

- @State private var error: Error?
+ @State private var error: (any Error)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions