mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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>.
6 lines
177 B
Swift
6 lines
177 B
Swift
// RUN: %target-swift-frontend -typecheck -primary-file %s %S/Inputs/requirement-signature.swift
|
|
|
|
func run<CO: ConnectableObservableType, O>(co: CO, o: O) {
|
|
co.subscribe(o)
|
|
}
|