linter icon indicating copy to clipboard operation
linter copied to clipboard

Flag unreachable else blocks due to range overlap

Open filiph opened this issue 9 years ago • 5 comments

if (a > 2) {
  doX();
} else if (a > 5) {
  doY();
}

filiph avatar Feb 16 '16 20:02 filiph

This might be linted now that https://github.com/dart-lang/linter/pull/229 is merged. I might add a test to confirm @pq can you assign this to me?

alexeieleusis avatar Sep 09 '16 05:09 alexeieleusis

it is not linted :(

alexeieleusis avatar Sep 09 '16 19:09 alexeieleusis

I might add a test to confirm @pq can you assign this to me?

Added you as a collaborator... Once you accept, you'll be free to add yourself! 😄

pq avatar Sep 13 '16 15:09 pq

Is this in?

filiph avatar May 10 '17 21:05 filiph

This is not linted.

alexeieleusis avatar May 10 '17 21:05 alexeieleusis