mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
Add a changelog entry for Null
.
Fixes #28024 BUG= http://dartbug.com/28024 R=lrn@google.com Review-Url: https://codereview.chromium.org/2640163005 .
This commit is contained in:
parent
71efbad90c
commit
b002a17811
1 changed files with 14 additions and 0 deletions
14
CHANGELOG.md
14
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.
|
||||
|
||||
Examples:
|
||||
```
|
||||
Null foo() => null;
|
||||
int x = foo();
|
||||
String x = foo();
|
||||
|
||||
List<Null> bar() => <Null>[];
|
||||
List<int> = bar();
|
||||
List<String> = bar();
|
||||
```
|
||||
|
||||
### Tool changes
|
||||
|
||||
* Dart2Js
|
||||
|
|
Loading…
Reference in a new issue