Skip to content

Anonymous property not allowed to have some type #61578

Open
@AnthonyLatsis

Description

@AnthonyLatsis

Describe the bug

let _: some Equatable = true // error: 'some' type can only be declared on a single property declaration

Expected behavior
The described limitation need not apply to an irrefutable pattern, since there is no harm in regarding it as a single declaration.

Environment
Swift version 5.8-dev (Swift d124b35)

I am pretty confident this is an adequate candidate for a first-time issue, but I have not run any tests against the small correction this seems to require.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerThe Swift compiler itselfimprovementopaque typesFeature → types: opaque typestype checkerArea → compiler: Semantic analysis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions