Skip to content

Commit 9dc3737

Browse files
authored
Add missing variables (#4129)
1 parent 9b2d2e9 commit 9dc3737

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

working/3616 - enum value shorthand/proposal-simple-lrhn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Future<List<int>> futures = .wait([.value(1), .value(2)]);
7373
Future futures = .wait<int>([.value(1), .value(2)]);
7474
7575
// -> Future<List<String>>.wait([lazyString(), lazyString()]).then<String>((list) => list.join())
76-
Future<String> = .wait([lazyString(), lazyString()]).then((list) => list.join());
76+
Future<String> futures = .wait([lazyString(), lazyString()]).then((list) => list.join());
7777
```
7878

7979
This is a simple grammatical change. It allows new constructs in any place where
@@ -216,7 +216,7 @@ denotes an allowed type declaration:
216216
int v1 = .parse("42") + 1; // Context `_`.
217217
int v2 = (.parse("42")).abs(); // Context `_`.
218218
dynamic v3 = .parse("42"); // Context `_`.
219-
FutureOr<int> = .parse("42"); // Context `FutureOr<int>` is structural type.
219+
FutureOr<int> v4 = .parse("42"); // Context `FutureOr<int>` is structural type.
220220
```
221221

222222
#### Special case for `==`

0 commit comments

Comments
 (0)