Tuple equality gets lost #62708
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
conformances
Feature → protocol: protocol conformances
derived conformances
Feature → protocol → conformances: derived conformances aka synthesized conformances
type checker
Area → compiler: Semantic analysis
Description
Equality for tuples seems to get lost.
Steps to reproduce
Here are two examples that raise different error messages.
Example A:
Workaround:
Example B with
Optional
that makes things worse:Workaround:
Expected behavior
Both examples should compile just fine without manual implication of the
==
function.Environment
Swift compiler version info:
swift-driver version: 1.62.15 Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
Target: arm64-apple-macosx13.0
Xcode version info: Version 14.1 (14B47b)
Deployment target: iOS 15.0
The text was updated successfully, but these errors were encountered: