1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-03 00:08:46 +00:00

Update CHANGELOG.md

Clarify cast example for const expressions

Closes #38181
https://github.com/dart-lang/sdk/pull/38181

GitOrigin-RevId: 6b11ef6fa885659a4680c12d433a0b2aa7a228ac
Change-Id: If37be42bbeb2a6da0ec655de340e738bf6cc34da
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/115260
Reviewed-by: Leaf Petersen <leafp@google.com>
This commit is contained in:
Michael Thomsen 2019-09-04 07:58:23 +00:00
parent 1946d9d7a0
commit 5e549b3d21

View File

@ -22,7 +22,7 @@ expressions under the appropriate conditions:
```dart
// Example: these are now valid constants.
const i = 3;
const Object i = 3;
const list = [i as int];
const set = {if (list is List<int>) ...list};
const map = {if (i is int) i : "int"};