[SR-6851] Implementing Collection and SetAlgebra on generic class type parameter makes isEmpty ambiguous #49400
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
Swift 4.0.3
Additional Detail from JIRA
md5: d4deef45bd5f6d17d61beca23bde4b9d
duplicates:
Issue Description:
Given a generic type implementing both Collection and SetAlgebra, a class-restricted type parameter, and parameterizing over a protocol, the definition compiles, but use of `isEmpty` is ambiguous.
The text was updated successfully, but these errors were encountered: