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

Annotate fail with @alwaysThrows, Remove unreachable throws #1763

Merged
merged 1 commit into from
Dec 18, 2017

Conversation

kevmoo
Copy link
Member

@kevmoo kevmoo commented Dec 16, 2017

dart-lang/sdk#31384 was fixed in
dart-lang/sdk@0a6253312f

Available in Dart 2.0.0-dev.12.0

@kevmoo
Copy link
Member Author

kevmoo commented Dec 16, 2017

Feel free to squash/merge and delete the branch if approve...

kevmoo referenced this pull request in dart-lang/sdk Dec 16, 2017
The meta package version 1.1.0 includes a new `alwaysThrows`, which developers
can use to annotate methods that always throw. This helps to avoid erroneous
DEAD_CODE warnings from analyzer.

Bug: #31384
Change-Id: I70e2469b4f3a0d2c87064851160b268ea2259807
Reviewed-on: https://dart-review.googlesource.com/26563
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
@nex3 nex3 merged commit 35730f7 into master Dec 18, 2017
@nex3 nex3 deleted the always_fails branch December 18, 2017 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants