[SR-8776] Confusing error with broken CaseIterable conformance #51284
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
Environment
Apple Swift version 4.2 (swiftlang-1000.11.37.1 clang-1000.11.45.1)
Target: x86_64-apple-darwin17.7.0
Additional Detail from JIRA
md5: a6ba5ec9b7e3fa45b28fea7ca3c1c0d9
is duplicated by:
CaseIterable
relates to:
CaseIterable
Issue Description:
If I try and declare an enum that wants to synthesize
CaseIterable
conformance but I break that by declaring theAllCases
typealias myself, I get a confusing error when I try and access theallCases
property.produces
If I mark the enum as
public
instead, then the first error becomes the even more brokenThe text was updated successfully, but these errors were encountered: