Files
swift-mirror/test/Reflection/Inputs/Protocols.swift
Slava Pestov 23ded3cf6f Reflection: Fix crash when reflecting existential with fileprivate protocol member
Fixes <rdar://problem/31661662>, <rdar://problem/31668126>,
and probably many other crashes with the same backtrace.
2017-05-04 15:45:35 -07:00

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
}