Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: pkg/meta/CHANGELOG.md

Issue 2973383002: Bump meta to 1.1.0 (Closed)
Patch Set: comments Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/meta/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/meta/CHANGELOG.md
diff --git a/pkg/meta/CHANGELOG.md b/pkg/meta/CHANGELOG.md
index b91da1c7795f71cba1db4c6f83eaaec0fa62ffae..51ed95fe5ff1f04f79435cbfc98f455a05328207 100644
--- a/pkg/meta/CHANGELOG.md
+++ b/pkg/meta/CHANGELOG.md
@@ -1,3 +1,26 @@
+## 1.1.0
+* Introduce `@alwaysThrows` to declare that a function always throws
+ (SDK issue [17999](https://github.com/dart-lang/sdk/issues/17999)). This
+ is first available in Dart SDK 1.25.0-dev.1.0.
+
+ ```dart
+ import 'package:meta/meta.dart';
+
+ // Without knowing that [failBigTime] always throws, it looks like this
+ // function might return without returning a bool.
+ bool fn(expected, actual) {
+ if (expected != actual)
+ failBigTime(expected, actual);
+ else
+ return True;
+ }
+
+ @alwaysThrows
+ void failBigTime(expected, actual) {
+ throw new StateError('Expected $expected, but was $actual.');
+ }
+ ```
+
## 1.0.4
* Introduce `@virtual` to allow field overrides in strong mode
(SDK issue [27384](https://github.com/dart-lang/sdk/issues/27384)).
« no previous file with comments | « no previous file | pkg/meta/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698