Skip to content

Commit b2fe997

Browse files
author
Nathan Hawes
authored
Merge pull request #30836 from nathawes/doc-info-where-from-context
[SourceKit/DocSupport] List generic requirements from contextual where clauses in doc info request
2 parents c71ac7a + af0509e commit b2fe997

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)