Files
swift-mirror/test/multifile/requirement-signature.swift
Slava Pestov 7809446735 Sema: Fix assertion when performing conformance check of protocol in another file
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>.
2017-03-14 21:17:01 -07:00

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)
}