[SR-4824] Add tests to check Collection constraints are being enforced #47401
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
good first issue
Good for newcomers
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: 6b6aabc9be01be2d9974ed98c3c057f8
Issue Description:
#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).
The text was updated successfully, but these errors were encountered: