Files
swift-mirror/validation-test/IDE/crashers_2_fixed/rdar43625800.swift
Rintaro Ishizaki c6017095c3 [AST] Use invalid conformance for unsatisfied requirement
There is an invariant that SignatureConformances should have the same
size as the number of conformance requirements in the signature.
Previously, since unsatisfied requirements weren't reflected in it,
that caused a crash.

rdar://problem/43625800
2018-10-10 21:03:25 +09:00

17 lines
314 B
Swift

// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s
protocol ProviderP {
associatedtype Data
}
protocol BaseP {}
protocol DerivedP : BaseP {
associatedtype Provider: ProviderP
func testing(_: Provider.Data)
}
struct Concrete : DerivedP {
#^COMPLETE^#
}