Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

large_tuple incorrectly identifies type annotation as tuple #1234

Closed
sarambasich opened this issue Jan 23, 2017 · 1 comment
Closed

large_tuple incorrectly identifies type annotation as tuple #1234

sarambasich opened this issue Jan 23, 2017 · 1 comment
Labels
bug Unexpected and reproducible misbehavior.

Comments

@sarambasich
Copy link

sarambasich commented Jan 23, 2017

The rule large_tuple indicates the type annotation for a multi-parameter closure is a malformed tuple.

open class NetworkSessionHandler: NSObject, URLSessionDataDelegate {
    ...
    var completionHandler: ((_ data: Data?, _ resp: URLResponse?, _ e: NSError?) -> Void)!

The type of the variable completionHandler is not a tuple but instead a function that accepts 3 arguments and returns Void or ().

@marcelofabri marcelofabri added the bug Unexpected and reproducible misbehavior. label Jan 23, 2017
@marcelofabri
Copy link
Collaborator

This shouldn't trigger. I was able to reproduce it with 0.16.1. Thanks for letting us know!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Unexpected and reproducible misbehavior.
Projects
None yet
Development

No branches or pull requests

2 participants