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

Matching tuples using wildcards and a "where" clause triggers empty_enum_arguments #1722

Closed
fellipecaetano opened this issue Jul 28, 2017 · 0 comments
Labels

Comments

@fellipecaetano
Copy link

The following snippet is interpreted as a violation of the empty_enum_arguments rule:

switch (email, password) {
    case (_, _) where !email.value.isBlank && !password.value.isBlank:
        return .valid(email: .idle, password: .idle)
    default:
        break
}

I was expecting a violation of a different rule, or rather that no rules were violated at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants