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

Unified Diff: CHANGELOG.md

Issue 2640163005: Add a changelog entry for `Null`. (Closed)
Patch Set: Created 3 years, 11 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 | no next file » | 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 04f687745d4a0e8638fc425d18e53b0206b2dda1..7f3f630a6de551e40497cefe7f990320914e8c40 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -29,6 +29,20 @@
#2 main (file:///Users/mit/tmp/tool/bin/main.dart:9:10)
```
+ * The `Null` type has been moved to the bottom of the type hierarchy. As such,
+ it is considered a subtype of every other type.
Lasse Reichstein Nielsen 2017/01/19 13:58:47 (Not technically true, since bottom exists, but le
floitsch 2017/01/19 14:18:53 Acknowledged.
+
+ Examples:
+ ```
+ Null foo() => null;
+ int x = foo();
+ String x = foo();
+
+ List<Null> bar() => [];
Lasse Reichstein Nielsen 2017/01/19 13:58:47 Add the type parameter to the literal as well, jus
floitsch 2017/01/19 14:18:54 Done.
+ List<int> = bar();
+ List<String> = bar();
+ ```
+
### Tool changes
* Dart2Js
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698