-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension constraints including conditional conformance #717
Comments
You are correct. There is no automation for this yet. Using I have even added this custom rule to SwiftLint so that I cannot forget to mark |
For reference. Input: /// Fly, you Foos!
public struct Foo<T> {
/// Creates a new instance with a single `T`.
public init(t: T) {}
}
public extension Foo where T == Int {
/// Creates a new instance with the sum of many `T`.
public init(t: T...) {
self.init(t: t.reduce(0, {$0 + $1}))
}
} Expected output: unclear, but it should be obvious that |
This goes hand in hand with |
(finally) fixed in master. |
Not sure if I have missed something — it seems Jazzy does not generate a section title for extensions with different constraints to differentiate themselves from each other. Is that only possible by manually adding
// MARK: -
?The text was updated successfully, but these errors were encountered: