swiftlang/swift

[SR-4824] Add tests to check Collection constraints are being enforced

Open

#47 401 ouverte le 7 mai 2017

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Swift (10 719 forks)batch import
buggood first issuestandard library

Métriques du dépôt

Stars
 (69 989 stars)
Métriques de merge PR
 (Merge moyen 8j 17h) (510 PRs mergées en 30 j)

Description

Previous ID SR-4824
Radar rdar://problem/32134714
Original Reporter @airspeedswift
Type Bug
Votes 0
Component/s Standard Library
Labels Bug, StarterBug
Assignee djwbrown (JIRA)
Priority Medium

md5: 6b6aabc9be01be2d9974ed98c3c057f8

Issue 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).

Guide contributeur