Skip to content
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

Parameters should be allowed to have annotations #26

Closed
alex-pinkus opened this issue Oct 16, 2021 · 0 comments · Fixed by #28
Closed

Parameters should be allowed to have annotations #26

alex-pinkus opened this issue Oct 16, 2021 · 0 comments · Fixed by #28
Labels
missing-language-feature A Swift language feature is not supported by the grammar top-repos-error A failure that shows up in one of the top repos parsed by the `top-repos` script

Comments

@alex-pinkus
Copy link
Owner

From Kingfisher at Sources/SwiftUI/KFImageOptions.swift:

    public func placeholder<Content: View>(@ViewBuilder _ content: () -> Content) -> KFImage {
        let v = content()
        var result = self
        result.context.placeholder = AnyView(v)
        return result
    }

@ViewBuilder isn't allowed but should be.

@alex-pinkus alex-pinkus added missing-language-feature A Swift language feature is not supported by the grammar top-repos-error A failure that shows up in one of the top repos parsed by the `top-repos` script labels Oct 16, 2021
alex-pinkus added a commit that referenced this issue Oct 16, 2021
* Better specify availability condition arguments (int.int.int is now
legal, other literals are not) (Fixes #17)
* Allow protocol composition types anywhere we allow implicitly
unwrapped types (Fixes #18)
* Allow subscripts to have more than one argument (Fixes #22)
* Add support for property wrapper projections (Fixes #23)
* Let protocol property requirements specify mutation modifiers
(Fixes #24)
* Support annotations on parameters (Fixes #26)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing-language-feature A Swift language feature is not supported by the grammar top-repos-error A failure that shows up in one of the top repos parsed by the `top-repos` script
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant