Skip to content

Commit

Permalink
Add missing variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mnordine authored Oct 11, 2024
1 parent 9b2d2e9 commit 854552a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions working/3616 - enum value shorthand/proposal-simple-lrhn.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Future<List<int>> futures = .wait([.value(1), .value(2)]);
Future futures = .wait<int>([.value(1), .value(2)]);
// -> Future<List<String>>.wait([lazyString(), lazyString()]).then<String>((list) => list.join())
Future<String> = .wait([lazyString(), lazyString()]).then((list) => list.join());
Future<String> futures = .wait([lazyString(), lazyString()]).then((list) => list.join());
```

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

#### Special case for `==`
Expand Down

0 comments on commit 854552a

Please sign in to comment.