Commit Graph

2 Commits

Author SHA1 Message Date
Ben Cohen
4ddac3fbbd [stdlib] Eradicate IndexDistance associated type (#12641)
* Eradicate IndexDistance associated type, replacing with Int everywhere

* Consistently use Int for ExistentialCollection’s IndexDistance type.

* Fix test for IndexDistance removal

* Remove a handful of no-longer-needed explicit types

* Add compatibility shims for non-Int index distances

* Test compatibility shim

* Move IndexDistance typealias into the Collection protocol
2017-12-08 12:00:23 -08:00
Slava Pestov
3ab7c7283d Sema: Allow protocol typealiases to witness associated type requirements
When resolving a type witness by lookup, also consider protocol members.

Fixes <rdar://problem/30442622>.
2017-03-13 01:19:45 -07:00