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

[dwds] Delete unreachable default clauses. #2484

Merged
merged 3 commits into from
Sep 4, 2024

Commits on Aug 26, 2024

  1. [dwds] Delete unreachable default clauses.

    The Dart analyzer will soon be changed so that if the `default` clause
    of a `switch` statement is determined to be unreachable by the
    exhaustiveness checker, a new warning of type
    `unreachable_switch_default` will be issued. This parallels the
    behavior of the existing `unreachable_switch_case` warning, which is
    issued whenever a `case` clause of a `switch` statement is determined
    to be unreachable. For details see
    dart-lang/sdk#54575.
    
    This PR deletes unreachable `default` clauses from `webdev/dwds` now,
    to avoid a spurious warning when the analyzer change lands.
    stereotype441 committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    d9ede52 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. Configuration menu
    Copy the full SHA
    2c8f6c3 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. Configuration menu
    Copy the full SHA
    e7eea48 View commit details
    Browse the repository at this point in the history