[dart-announce] Breaking change 56065: Change the context for the operand of throw to Object.

9 views
Skip to first unread message

'Paul Berry' via Dart Announcements

unread,
Jun 21, 2024, 11:30:28 AM (12 days ago) Jun 21
to anno...@dartlang.org
The type schema for type inference of the operand of a throw expression will be changed from _ (the unknown type) to non-nullable Object.

This change is expected to have very low impact on real-world code. But in principle it could cause changes in runtime behavior.

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

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
Reply all
Reply to author
Forward
0 new messages