[SR-2900] binary operator ==
cannot be applied to two MyEnum operands
#45494
Labels
compiler
The Swift compiler in itself
conformances
Feature → protocol: protocol conformances
derived conformances
Feature → protocol → conformances: derived conformances aka synthesized conformances
enum
Feature → type declarations: Swift enumeration declarations
Equatable
Area → standard library: The `Equatable` protocol
feature
A feature request or implementation
swift evolution implemented
Flag → feature: A feature that was approved through the Swift evolution process and implemented
swift 3.0
type checker
Area → compiler: Semantic analysis
Environment
Xcode 8. Swift 3
Additional Detail from JIRA
md5: 4da3829a65b5e5dc537fe5c501b942aa
Issue Description:
This seems unnecessarily severe. Use of
==
with enum instances is a natural convenience; in fact, it's kind of the point of enums. Telling me I can't do it just because some case has an associated value is a bit rough.The text was updated successfully, but these errors were encountered: