Tuples in Swift do not support comparison with the == operator
| Originator: | injahta | ||
| Number: | rdar://17219478 | Date Originated: | 06/07/2014 |
| Status: | Open | Resolved: | |
| Product: | Swift | Product Version: | |
| Classification: | Bug | Reproducible: | Always |
Summary: Tuples do not support comparison with the == operator, and trying to compare tuples give an compiler error “could not find an overload for == that accepts the supplied arguments” Steps to Reproduce: 1. Create two tuples such as: let t1 = (1,2) let t2 = (1,2) 2. Try and compare them using == such as t1 == t2 Expected Results: (1,2) == (1,2) should return true. Actual Results: A compiler error stating “could not find an overload for == that accepts the supplied arguments”
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!