Skip to content

Commit af0509e

Browse files
author
Nathan Hawes
committed
[SourceKit/DocSupport] List generic requirements from contextual where clauses in doc info request
We previously didn't report the requirements in the where clause of 'boxes' below because it didn't have generic parameters of its own: public struct Box<Wrapped> { public func boxes() -> [Box<Wrapped.Element>] where Wrapped: Sequence { fatalError() } } Resolves rdar://problem/60658263
1 parent 51a2a07 commit af0509e

File tree

3 files changed

+630
-397
lines changed

3 files changed

+630
-397
lines changed

test/SourceKit/DocSupport/Inputs/cake.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,16 @@ some comments
106106
public extension C1 {
107107
func addition() {}
108108
}
109+
110+
111+
public struct Box<Wrapped> {
112+
public func boxes() -> [Box<Wrapped.Element>] where Wrapped: Sequence { fatalError() }
113+
}
114+
115+
public protocol P {
116+
func foo()
117+
}
118+
119+
public extension P {
120+
func bar() where Self: Equatable {}
121+
}

0 commit comments

Comments
 (0)