mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 13:47:50 +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:
parent
1946d9d7a0
commit
5e549b3d21
|
@ -22,7 +22,7 @@ expressions under the appropriate conditions:
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
// Example: these are now valid constants.
|
// Example: these are now valid constants.
|
||||||
const i = 3;
|
const Object i = 3;
|
||||||
const list = [i as int];
|
const list = [i as int];
|
||||||
const set = {if (list is List<int>) ...list};
|
const set = {if (list is List<int>) ...list};
|
||||||
const map = {if (i is int) i : "int"};
|
const map = {if (i is int) i : "int"};
|
||||||
|
|
Loading…
Reference in a new issue