[dart-announce] Breaking change 55418: Make the context for await expressions consistent

18 views
Skip to first unread message

'Paul Berry' via Dart Announcements

unread,
Apr 10, 2024, 5:42:35 AMApr 10
to anno...@dartlang.org
The context used by the compiler front end to perform type inference on the operand of await expressions will be changed to match the behavior of the analyzer. The change is as follows: when the context for the entire await expression is dynamic, the context for the operand of the await expression will be FutureOr<_>.

Although this is technically a breaking change, it's not expected to have any effect on real-world code.

For additional details please see https://github.com/dart-lang/sdk/issues/55418.

If this breaking change poses a severe problem, please leave comments in the linked issue.

--
For more ways to connect visit https://dart.dev/community

'Paul Berry' via Dart Announcements

unread,
May 7, 2024, 12:31:44 PMMay 7
to anno...@dartlang.org
This change is being implemented now.
Reply all
Reply to author
Forward
0 new messages