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

Unified Diff: CHANGELOG.md

Issue 2295853002: fix #26992, inference failures are now an error (Closed)
Patch Set: fix comment Created 4 years, 3 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/analyzer/lib/src/generated/error.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: CHANGELOG.md
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d76e779f1b809094f00be9e1b7e26670b1665581..315e870b91fcaed1266970435a7cec2dfbf4b7fc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,24 @@
* Added `WebSocket.addUtf8Text` to allow sending a pre-encoded text message
without a round-trip UTF-8 conversion.
+## Strong Mode
+
+* Breaking change - it is an error if a generic type parameter cannot be
+ inferred (SDK issue [26992](https://github.com/dart-lang/sdk/issues/26992)).
+
+ ```dart
+ class Cup<T> {
+ Cup(T t);
+ }
+ main() {
+ // Error because:
+ // - if we choose Cup<num> it is not assignable to `cOfInt`,
+ // - if we choose Cup<int> then `n` is not assignable to int.
+ num n;
+ C<int> cOfInt = new C(n);
+ }
+ ```
+
## 1.19.0
### Language changes
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/error.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698