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

fellipecaetano opened this Issue Jul 28, 2017 · 0 comments


None yet
2 participants

fellipecaetano commented Jul 28, 2017

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)

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