mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fixes <rdar://problem/31661662>, <rdar://problem/31668126>, and probably many other crashes with the same backtrace.
28 lines
437 B
Swift
28 lines
437 B
Swift
public protocol P1 {
|
|
associatedtype Inner
|
|
}
|
|
|
|
public protocol P2 {
|
|
associatedtype Outer : P1
|
|
}
|
|
|
|
public protocol P3 {
|
|
associatedtype First
|
|
associatedtype Second
|
|
}
|
|
|
|
public protocol P4 {
|
|
associatedtype Result
|
|
func getResult() -> Result
|
|
}
|
|
|
|
public protocol ClassBoundP: class {
|
|
associatedtype Inner
|
|
}
|
|
|
|
fileprivate protocol FileprivateProtocol {}
|
|
|
|
public struct HasFileprivateProtocol {
|
|
fileprivate let x: FileprivateProtocol
|
|
}
|