mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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
17 lines
314 B
Swift
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^#
|
|
}
|