In Swift 4:
protocol P1 {
associatedtype A: P1 // Error: Type may not reference itself as a
requirement
}
protocol P2 {
associatedtype A where A: P2 // OK
}What is the rationale behind this? /Jens
_______________________________________________ swift-users mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-users
