Can't inherit from a protocol with primary associated types using the "generic" notation #62906
Labels
associated type inference
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
conformances
Feature → protocol: protocol conformances
parameterized protocols
Feature → protocol: protocols with primary associated types
swift 5.9
type checker
Area → compiler: Semantic analysis
unexpected error
Bug: Unexpected error
It doesn't seem possible for a struct to inherit a protocol with primary associated type using this primary associated type in the declaration. In other words, the following doesn't compile:
This configuration was however explicitly mentioned in SE-0346, so I don't know if this is a bug, a regression, or feature that was not implemented at the end.
Environment
The text was updated successfully, but these errors were encountered: