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

Duplicate case labels not detected #20077

Closed
stevemessick opened this issue Jul 16, 2014 · 3 comments
Closed

Duplicate case labels not detected #20077

stevemessick opened this issue Jul 16, 2014 · 3 comments
Assignees
Labels
analyzer-warning Issues with the analyzer's Warning codes area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug

Comments

@stevemessick
Copy link
Contributor

Editor doesn't complain about two case statements that are the same:

      switch (event) {
        case Media.CLIENT_BUFFER_EMPTY:
         // do something
          break;
        case Media.END_OF_STREAM:
          // Do something else
          break;
        case Media.CLIENT_BUFFER_EMPTY:
          // will never be executed but editor doesn't warn
          break;
        default:
          // not handled
          break;
      }

////////////////////////////////////////////////////////////////////////////////////
Editor: 1.4.0.dev_06_04 (2014-05-12)
OS: Linux - amd64 (3.13.0-30-generic)
JVM: 1.7.0-google-v6

projects: 1

open dart files: 2

auto-run pub: true
localhost resolves to: 127.0.0.1
mem max/total/free: 1778 / 873 / 690 MB
thread count: 24
index: 445452 relationships in 93003 keys in 373 sources

SDK installed: true
Dartium installed: true

@bwilkerson
Copy link
Member

Removed Priority-Unassigned label.
Added Priority-Medium, Analyzer-Constants labels.

@bwilkerson
Copy link
Member

Removed Type-Defect, Analyzer-Constants labels.
Added Type-Enhancement, Analyzer-Hint labels.

@stevemessick stevemessick added Type-Enhancement area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. analyzer-warning Issues with the analyzer's Warning codes labels Nov 5, 2014
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug and removed triaged labels Mar 1, 2016
@srawlins
Copy link
Member

Dup of #14666 methinks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-warning Issues with the analyzer's Warning codes area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants