[swift-evolution] [Idea] Typealias for protocols with associated types

Jessy Catterwaul mr.jessy at gmail.com
Thu Feb 4 12:01:24 CST 2016


I agree, as long as the typealias and second use of the type name is not necessary.

Because 
extension CollectionType where Generator.Element == Int {}
compiles…

var collection: CollectionType where Generator.Element == Int
should also.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160204/c8f0a486/attachment.html>


More information about the swift-evolution mailing list