From 854552aa3f9d142f57db6e1297a7cb07b542722e Mon Sep 17 00:00:00 2001 From: mnordine Date: Fri, 11 Oct 2024 13:52:31 -0300 Subject: [PATCH] Add missing variables --- working/3616 - enum value shorthand/proposal-simple-lrhn.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/working/3616 - enum value shorthand/proposal-simple-lrhn.md b/working/3616 - enum value shorthand/proposal-simple-lrhn.md index c2243cb12..d1b112b6e 100644 --- a/working/3616 - enum value shorthand/proposal-simple-lrhn.md +++ b/working/3616 - enum value shorthand/proposal-simple-lrhn.md @@ -73,7 +73,7 @@ Future> futures = .wait([.value(1), .value(2)]); Future futures = .wait([.value(1), .value(2)]); // -> Future>.wait([lazyString(), lazyString()]).then((list) => list.join()) -Future = .wait([lazyString(), lazyString()]).then((list) => list.join()); +Future futures = .wait([lazyString(), lazyString()]).then((list) => list.join()); ``` This is a simple grammatical change. It allows new constructs in any place where @@ -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 = .parse("42"); // Context `FutureOr` is structural type. +FutureOr v4 = .parse("42"); // Context `FutureOr` is structural type. ``` #### Special case for `==`