Open
Description
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
Bug: Accepts invalidA deviation from expected or documented behavior. Also: expected but undesirable behavior.The Swift compiler itselfFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesFeature → types: Qualified identifier typesArea → compiler: Semantic analysisFeature: types