mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
GenericSignature::getConformanceAccessPath() would call computeRequirementSignature() if the protocol did not already have one. If this happened before the protocol was validated with validateDecl(), then we would hit an assertion because validateDecl() calls computeRequirementSignature() unconditionally. Change validateDecl() to only call computeRequirementSignature() if the protocol does not already have a requirement signature. Progress on <rdar://problem/30817732>.
8 lines
128 B
Swift
8 lines
128 B
Swift
protocol ObservableType {
|
|
func subscribe<O>(_: O)
|
|
}
|
|
|
|
protocol ConnectableObservableType : ObservableType {
|
|
func connect()
|
|
}
|