Uploaded image for project: 'Swift'
  1. Swift
  2. SR-4172

() == () doesn't compile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Standard Library
    • Labels:
      None
    • Environment:

      Apple Swift version 3.0.2 (swiftlang-800.0.63 clang-800.0.42.1)
      Target: x86_64-apple-macosx10.9

      Description

      As the summary says, () == () doesn't compile. This seems like an oversight, since tuples (up to 6-ary) support == if they can (i.e. if all their elements are Equatable), and there's no reason why the base case of the 0-ary tuple shouldn't.

        Attachments

          Activity

            People

            Assignee:
            anayini Arjun Nayini
            Reporter:
            lily Lily Ballard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: