Skip to content

Missing any not diagnosed if protocol is a qualifier. #72678

Open
@AnthonyLatsis

Description

@AnthonyLatsis

Description

No response

Reproduction

protocol P {
  typealias A = Bool
  associatedtype T
}

let _: P.A

Expected behavior

An error and a fix-it that inserts any like so: (any P).A.

Environment

Swift version 6.0-dev (LLVM 48dc0c6fa01ce9e, Swift 19fbe5b)
Target: x86_64-apple-macosx14.0

Additional information

No response

Metadata

Metadata

Assignees

Labels

accepts invalidBug: Accepts invalidbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfexistentialsFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesqualified identifier typesFeature → types: Qualified identifier typesswift 6.2type checkerArea → compiler: Semantic analysistypesFeature: types

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions