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

Add tests to check Collection constraints are being enforced

    Details

      Description

      https://github.com/apple/swift/pull/9379 removed tests confirming collection's associated types conformed to appropriate protocols e.g. MutableCollection.SubSequence: MutableCollection. Now the compiler is enforcing these, so they were just generating warnings.

      They should be replaced by tests checking the compiler is enforcing these rules (by trying to create invalid collections and checking the error messages).

        Attachments

          Activity

            People

            • Assignee:
              djwbrown Dylan Brown
              Reporter:
              airspeedswift Ben Cohen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: